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_typestring
The media type of the quick response content.- Use application/x.quickresponse;format=plain for quick response written in plain text.
- 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_DE, en_US, es_ES, fr_FR, id_ID, it_IT, ja_JP, ko_KR, pt_BR, zh_CN, zh_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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.wisdom.quick_responses
WHERE
Identifier = '{{ quick_response_arn }}' 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 quick_responses resource, the following permissions are required:

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