Skip to main content

message_templates

Creates, updates, deletes or gets a message_template resource or lists message_templates in a region

Overview

Namemessage_templates
TypeResource
DescriptionDefinition of AWS::Wisdom::MessageTemplate Resource Type
Idawscc.wisdom.message_templates

Fields

NameDatatypeDescription
knowledge_base_arnstringThe Amazon Resource Name (ARN) of the knowledge base to which the message template belongs.
message_template_idstringThe unique identifier of the message template.
message_template_arnstringThe Amazon Resource Name (ARN) of the message template.
namestringThe name of the message template.
channel_subtypestringThe channel subtype this message template applies to.
contentobjectThe content of the message template.
descriptionstringThe description of the message template.
languagestringThe language code value for the language in which the message template 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
grouping_configurationobjectThe configuration information of the user groups that the quick response is accessible to.
default_attributesobjectAn object that specifies the default values to use for variables in the message template. This object contains different categories of key-value pairs. Each key defines a variable or placeholder in the message template. The corresponding value defines the default value for that variable.
message_template_content_sha256stringThe content SHA256 of the message template.
message_template_attachmentsarrayList of message template attachments
tagsarrayThe tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
regionstringAWS region.

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

Methods

NameAccessible byRequired Params
create_resourceINSERTKnowledgeBaseArn, ChannelSubtype, Name, Content, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual message_template.

SELECT
region,
knowledge_base_arn,
message_template_id,
message_template_arn,
name,
channel_subtype,
content,
description,
language,
grouping_configuration,
default_attributes,
message_template_content_sha256,
message_template_attachments,
tags
FROM awscc.wisdom.message_templates
WHERE region = 'us-east-1' AND data__Identifier = '<MessageTemplateArn>';

INSERT example

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

/*+ create */
INSERT INTO awscc.wisdom.message_templates (
KnowledgeBaseArn,
Name,
ChannelSubtype,
Content,
region
)
SELECT
'{{ KnowledgeBaseArn }}',
'{{ Name }}',
'{{ ChannelSubtype }}',
'{{ Content }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.wisdom.message_templates
WHERE data__Identifier = '<MessageTemplateArn>'
AND region = 'us-east-1';

Permissions

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

Create

wisdom:CreateMessageTemplate,
wisdom:GetMessageTemplate,
wisdom:TagResource,
connect:SearchRoutingProfiles,
connect:DescribeRoutingProfile,
wisdom:CreateMessageTemplateAttachment,
wisdom:DeleteMessageTemplateAttachment

Update

wisdom:UpdateMessageTemplate,
wisdom:UpdateMessageTemplateMetadata,
wisdom:GetMessageTemplate,
wisdom:TagResource,
wisdom:UntagResource,
connect:SearchRoutingProfiles,
connect:DescribeRoutingProfile,
wisdom:CreateMessageTemplateAttachment,
wisdom:DeleteMessageTemplateAttachment

Delete

wisdom:DeleteMessageTemplate,
wisdom:UntagResource,
wisdom:DeleteMessageTemplateAttachment

List

wisdom:ListMessageTemplates

Read

wisdom:GetMessageTemplate