Skip to main content

web_experiences

Creates, updates, deletes or gets a web_experience resource or lists web_experiences in a region

Overview

Nameweb_experiences
TypeResource
DescriptionDefinition of AWS::QBusiness::WebExperience Resource Type
Idawscc.qbusiness.web_experiences

Fields

NameDatatypeDescription
application_idstring
created_atstring
default_endpointstring
identity_provider_configurationobject
role_arnstring
sample_prompts_control_modestring
statusstring
subtitlestring
tagsarray
titlestring
updated_atstring
web_experience_arnstring
web_experience_idstring
welcome_messagestring
originsarray
customization_configurationobject
browser_extension_configurationobject
regionstringAWS region.

For more information, see AWS::QBusiness::WebExperience.

Methods

NameResourceAccessible byRequired Params
create_resourceweb_experiencesINSERTApplicationId, region
delete_resourceweb_experiencesDELETEIdentifier, region
update_resourceweb_experiencesUPDATEIdentifier, PatchDocument, region
list_resourcesweb_experiences_list_onlySELECTregion
get_resourceweb_experiencesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual web_experience.

SELECT
region,
application_id,
created_at,
default_endpoint,
identity_provider_configuration,
role_arn,
sample_prompts_control_mode,
status,
subtitle,
tags,
title,
updated_at,
web_experience_arn,
web_experience_id,
welcome_message,
origins,
customization_configuration,
browser_extension_configuration
FROM awscc.qbusiness.web_experiences
WHERE
region = '{{ region }}' AND
Identifier = '{{ application_id }}|{{ web_experience_id }}';

INSERT example

Use the following StackQL query and manifest file to create a new web_experience resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.qbusiness.web_experiences (
ApplicationId,
region
)
SELECT
'{{ application_id }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

Use the following StackQL query and manifest file to update a web_experience resource, using stack-deploy.

/*+ update */
UPDATE awscc.qbusiness.web_experiences
SET PatchDocument = string('{{ {
"IdentityProviderConfiguration": identity_provider_configuration,
"RoleArn": role_arn,
"SamplePromptsControlMode": sample_prompts_control_mode,
"Subtitle": subtitle,
"Tags": tags,
"Title": title,
"WelcomeMessage": welcome_message,
"Origins": origins,
"CustomizationConfiguration": customization_configuration,
"BrowserExtensionConfiguration": browser_extension_configuration
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ application_id }}|{{ web_experience_id }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.qbusiness.web_experiences
WHERE
Identifier = '{{ application_id }}|{{ web_experience_id }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

To operate on the web_experiences resource, the following permissions are required:

iam:PassRole,
qbusiness:CreateWebExperience,
qbusiness:GetWebExperience,
qbusiness:ListTagsForResource,
qbusiness:TagResource,
sso:PutApplicationGrant,
sso:UpdateApplication