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
Idaws.qbusiness.web_experiences

Fields

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

Methods

NameAccessible byRequired Params
create_resourceINSERTApplicationId, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourceSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

List all web_experiences in a region.

SELECT
region,
application_id,
web_experience_id
FROM aws.qbusiness.web_experiences
WHERE region = 'us-east-1';

Gets all properties from a web_experience.

SELECT
region,
application_id,
created_at,
default_endpoint,
role_arn,
sample_prompts_control_mode,
status,
subtitle,
tags,
title,
updated_at,
web_experience_arn,
web_experience_id,
welcome_message
FROM aws.qbusiness.web_experiences
WHERE region = 'us-east-1' AND data__Identifier = '<ApplicationId>|<WebExperienceId>';

INSERT example

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

/*+ create */
INSERT INTO aws.qbusiness.web_experiences (
ApplicationId,
region
)
SELECT
'{{ ApplicationId }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.qbusiness.web_experiences
WHERE data__Identifier = '<ApplicationId|WebExperienceId>'
AND region = 'us-east-1';

Permissions

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

Create

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

Read

qbusiness:GetWebExperience,
qbusiness:ListTagsForResource

Update

iam:PassRole,
qbusiness:GetWebExperience,
qbusiness:ListTagsForResource,
qbusiness:TagResource,
qbusiness:UntagResource,
qbusiness:UpdateWebExperience,
sso:PutApplicationGrant,
sso:UpdateApplication

Delete

qbusiness:DeleteWebExperience,
qbusiness:GetWebExperience

List

qbusiness:ListWebExperiences