Skip to main content

web_experiences

Creates, updates, deletes, gets or lists a web_experiences resource.

Overview

Nameweb_experiences
TypeResource
Idaws.qbusiness.web_experiences

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
application_idstringThe identifier of the Amazon Q Business application linked to the web experience. (pattern: <code>[a-zA-Z0-9][a-zA-Z0-9-]{35}</code>)
authentication_configurationobjectThe authentication configuration information for your Amazon Q Business web experience.
browser_extension_configurationobjectThe container for browser extension configuration for an Amazon Q Business web experience.
created_atstring (date-time)The Unix timestamp when the Amazon Q Business web experience was last created.
customization_configurationobjectContains the configuration information to customize the logo, font, and color of an Amazon Q Business web experience with individual files for each property or a CSS file for them all.
default_endpointstringThe endpoint of your Amazon Q Business web experience. (pattern: <code>(https?|ftp|file):​//([^\s]*)</code>)
errorobjectProvides information about a Amazon Q Business request error.
identity_provider_configurationobjectProvides information about the identity provider (IdP) used to authenticate end users of an Amazon Q Business web experience.
originsarrayGets the website domain origins that are allowed to embed the Amazon Q Business web experience. The domain origin refers to the base URL for accessing a website including the protocol (http/https), the domain name, and the port number (if specified).
role_arnstringThe Amazon Resource Name (ARN) of the service role attached to your web experience. (pattern: <code>arn:[a-z0-9-.]{1,63}:[a-z0-9-.]{0,63}:[a-z0-9-.]{0,63}:[a-z0-9-.]{0,63}:[^/].{0,1023}</code>)
sample_prompts_control_modestringDetermines whether sample prompts are enabled in the web experience for an end user. (ENABLED, DISABLED)
statusstringThe current status of the Amazon Q Business web experience. When the Status field value is FAILED, the ErrorMessage field contains a description of the error that caused the data source connector to fail. (CREATING, ACTIVE, DELETING, FAILED, PENDING_AUTH_CONFIG)
subtitlestringThe subtitle for your Amazon Q Business web experience. (pattern: <code>[\s\S]*</code>)
title_stringThe title for your Amazon Q Business web experience. (pattern: <code>[\s\S]*</code>)
updated_atstring (date-time)The Unix timestamp when the Amazon Q Business web experience was last updated.
web_experience_arnstringThe Amazon Resource Name (ARN) of the role with the permission to access the Amazon Q Business web experience and required resources. (pattern: <code>arn:[a-z0-9-.]{1,63}:[a-z0-9-.]{0,63}:[a-z0-9-.]{0,63}:[a-z0-9-.]{0,63}:[^/].{0,1023}</code>)
web_experience_idstringThe identifier of the Amazon Q Business web experience. (pattern: <code>[a-zA-Z0-9][a-zA-Z0-9-]*</code>)
welcome_messagestringThe customized welcome message for end users of an Amazon Q Business web experience.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_web_experienceselectapplication_id, web_experience_id, regionGets information about an existing Amazon Q Business web experience.
list_web_experiencesselectapplication_id, regionnextToken, maxResultsLists one or more Amazon Q Business Web Experiences.
create_anonymous_web_experience_urlinsertapplication_id, web_experience_id, regionCreates a unique URL for anonymous Amazon Q Business web experience. This URL can only be used once and must be used within 5 minutes after it's generated.
create_web_experienceinsertapplication_id, regionCreates an Amazon Q Business web experience.
update_web_experienceupdateapplication_id, web_experience_id, regionUpdates an Amazon Q Business web experience.
delete_web_experiencedeleteapplication_id, web_experience_id, regionDeletes an Amazon Q Business web experience.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
application_idstringThe identifier of the Amazon Q Business application linked to the Amazon Q Business web experience.
regionstringAWS region (default: us-east-1)
web_experience_idstringThe identifier of the Amazon Q Business web experience being deleted.
maxResultsintegerThe maximum number of Amazon Q Business Web Experiences to return.
nextTokenstringIf the maxResults response was incomplete because there is more data to retrieve, Amazon Q Business returns a pagination token in the response. You can use this pagination token to retrieve the next set of Amazon Q Business conversations.

SELECT examples

Gets information about an existing Amazon Q Business web experience.

SELECT
application_id,
authentication_configuration,
browser_extension_configuration,
created_at,
customization_configuration,
default_endpoint,
error,
identity_provider_configuration,
origins,
role_arn,
sample_prompts_control_mode,
status,
subtitle,
title_,
updated_at,
web_experience_arn,
web_experience_id,
welcome_message
FROM aws.qbusiness.web_experiences
WHERE application_id = '{{ application_id }}' -- required
AND web_experience_id = '{{ web_experience_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a unique URL for anonymous Amazon Q Business web experience. This URL can only be used once and must be used within 5 minutes after it's generated.

INSERT INTO aws.qbusiness.web_experiences (
sessionDurationInMinutes,
application_id,
web_experience_id,
region
)
SELECT
{{ sessionDurationInMinutes }},
'{{ application_id }}',
'{{ web_experience_id }}',
'{{ region }}'
RETURNING
anonymous_url
;

UPDATE examples

Updates an Amazon Q Business web experience.

UPDATE aws.qbusiness.web_experiences
SET
roleArn = '{{ roleArn }}',
authenticationConfiguration = '{{ authenticationConfiguration }}',
title = '{{ title }}',
subtitle = '{{ subtitle }}',
welcomeMessage = '{{ welcomeMessage }}',
samplePromptsControlMode = '{{ samplePromptsControlMode }}',
identityProviderConfiguration = '{{ identityProviderConfiguration }}',
origins = '{{ origins }}',
browserExtensionConfiguration = '{{ browserExtensionConfiguration }}',
customizationConfiguration = '{{ customizationConfiguration }}'
WHERE
application_id = '{{ application_id }}' --required
AND web_experience_id = '{{ web_experience_id }}' --required
AND region = '{{ region }}' --required;

DELETE examples

Deletes an Amazon Q Business web experience.

DELETE FROM aws.qbusiness.web_experiences
WHERE application_id = '{{ application_id }}' --required
AND web_experience_id = '{{ web_experience_id }}' --required
AND region = '{{ region }}' --required
;