Skip to main content

chat_controls_configurations

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

Overview

Namechat_controls_configurations
TypeResource
Idaws.qbusiness.chat_controls_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringA name for your topic control configuration. (pattern: <code>[a-zA-Z0-9][a-zA-Z0-9-]{0,35}</code>)
descriptionstringA description for your topic control configuration. Use this to outline how the large language model (LLM) should use this topic control configuration. (pattern: <code>\P{C}*</code>)
example_chat_messagesarrayA list of example phrases that you expect the end user to use in relation to the topic.
rulesarrayRules defined for a topic configuration.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_chat_controls_configurationselectapplication_id, regionmaxResults, nextTokenGets information about chat controls configured for an existing Amazon Q Business application.
update_chat_controls_configurationupdateapplication_id, regionUpdates a set of chat controls configured for an existing Amazon Q Business application.
delete_chat_controls_configurationdeleteapplication_id, regionDeletes chat controls configured for an existing Amazon Q Business application.

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 application the chat controls have been configured for.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of configured chat controls 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 chat controls configured.

SELECT examples

Gets information about chat controls configured for an existing Amazon Q Business application.

SELECT
name,
description,
example_chat_messages,
rules
FROM aws.qbusiness.chat_controls_configurations
WHERE application_id = '{{ application_id }}' -- required
AND region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;

UPDATE examples

Updates a set of chat controls configured for an existing Amazon Q Business application.

UPDATE aws.qbusiness.chat_controls_configurations
SET
clientToken = '{{ clientToken }}',
responseScope = '{{ responseScope }}',
orchestrationConfiguration = '{{ orchestrationConfiguration }}',
blockedPhrasesConfigurationUpdate = '{{ blockedPhrasesConfigurationUpdate }}',
topicConfigurationsToCreateOrUpdate = '{{ topicConfigurationsToCreateOrUpdate }}',
topicConfigurationsToDelete = '{{ topicConfigurationsToDelete }}',
creatorModeConfiguration = '{{ creatorModeConfiguration }}',
hallucinationReductionConfiguration = '{{ hallucinationReductionConfiguration }}'
WHERE
application_id = '{{ application_id }}' --required
AND region = '{{ region }}' --required;

DELETE examples

Deletes chat controls configured for an existing Amazon Q Business application.

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