Skip to main content

quick_responses

Creates, updates, deletes or gets a quick_response resource or lists quick_responses in a region

Overview

Namequick_responses
TypeResource
DescriptionDefinition of AWS::Wisdom::QuickResponse Resource Type.
Idawscc.wisdom.quick_responses

Fields

NameDatatypeDescription
content_typestringThe media type of the quick response content.<br />- Use application/x.quickresponse;format=plain for quick response written in plain text.<br />- Use application/x.quickresponse;format=markdown for quick response written in richtext.
knowledge_base_arnstringThe Amazon Resource Name (ARN) of the knowledge base.
namestringThe name of the quick response.
quick_response_arnstringThe Amazon Resource Name (ARN) of the quick response.
quick_response_idstringThe identifier of the quick response.
channelsarrayThe Amazon Connect contact channels this quick response applies to.
contentobjectThe container of quick response content.
contentsobjectThe content of the quick response stored in different media types.
descriptionstringThe description of the quick response.
grouping_configurationobjectThe configuration information of the user groups that the quick response is accessible to.
is_activebooleanWhether the quick response is active.
languagestringThe language code value for the language in which the quick response is written. The supported language codes include de&#95;DE, en&#95;US, es&#95;ES, fr&#95;FR, id&#95;ID, it&#95;IT, ja&#95;JP, ko&#95;KR, pt&#95;BR, zh&#95;CN, zh&#95;TW
shortcut_keystringThe shortcut key of the quick response. The value should be unique across the knowledge base.
statusstringThe status of the quick response data.
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

For more information, see AWS::Wisdom::QuickResponse.

Methods

NameResourceAccessible byRequired Params
create_resourcequick_responsesINSERTKnowledgeBaseArn, Content, Name, region
delete_resourcequick_responsesDELETEIdentifier, region
update_resourcequick_responsesUPDATEIdentifier, PatchDocument, region
list_resourcesquick_responses_list_onlySELECTregion
get_resourcequick_responsesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual quick_response.

SELECT
region,
content_type,
knowledge_base_arn,
name,
quick_response_arn,
quick_response_id,
channels,
content,
contents,
description,
grouping_configuration,
is_active,
language,
shortcut_key,
status,
tags
FROM awscc.wisdom.quick_responses
WHERE
region = 'us-east-1' AND
Identifier = '{{ quick_response_arn }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.wisdom.quick_responses (
KnowledgeBaseArn,
Name,
Content,
region
)
SELECT
'{{ knowledge_base_arn }}',
'{{ name }}',
'{{ content }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.wisdom.quick_responses
SET PatchDocument = string('{{ {
"ContentType": content_type,
"Name": name,
"Channels": channels,
"Content": content,
"Description": description,
"GroupingConfiguration": grouping_configuration,
"IsActive": is_active,
"Language": language,
"ShortcutKey": shortcut_key,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ quick_response_arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.wisdom.quick_responses
WHERE
Identifier = '{{ quick_response_arn }}' AND
region = 'us-east-1';

Permissions

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

wisdom:CreateQuickResponse,
wisdom:GetQuickResponse,
wisdom:TagResource,
connect:SearchRoutingProfiles,
connect:DescribeRoutingProfile