AWS::Wisdom::MessageTemplateVersion - AWS CloudFormation

AWS::Wisdom::MessageTemplateVersion

Creates a new Amazon Q in Connect message template version from the current content and configuration of a message template. Versions are immutable and monotonically increasing. Once a version is created, you can reference a specific version of the message template by passing in <messageTemplateArn>:<versionNumber> as the message template identifier. An error is displayed if the supplied messageTemplateContentSha256 is different from the messageTemplateContentSha256 of the message template with $LATEST qualifier. If multiple CreateMessageTemplateVersion requests are made while the message template remains the same, only the first invocation creates a new version and the succeeding requests will return the same response as the first invocation.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::Wisdom::MessageTemplateVersion", "Properties" : { "MessageTemplateArn" : String, "MessageTemplateContentSha256" : String } }

YAML

Type: AWS::Wisdom::MessageTemplateVersion Properties: MessageTemplateArn: String MessageTemplateContentSha256: String

Properties

MessageTemplateArn

The Amazon Resource Name (ARN) of the message template.

Required: Yes

Type: String

Pattern: ^arn:[a-z-]*?:wisdom:[a-z0-9-]*?:[0-9]{12}:[a-z-]*?/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}(?:/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})?$

Update requires: Replacement

MessageTemplateContentSha256

The content SHA256 of the message template.

Required: No

Type: String

Minimum: 1

Maximum: 64

Update requires: Some interruptions

Return values

Ref

Fn::GetAtt

MessageTemplateVersionArn

The Amazon Resource Name (ARN) of the Message Template Version.

MessageTemplateVersionNumber

The version number for this Message Template Version.