create-message-template-version
Description
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 <message-template-id>:<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.
See also: AWS API Documentation
Synopsis
create-message-template-version
--knowledge-base-id <value>
--message-template-id <value>
[--message-template-content-sha256 <value>]
[--cli-input-json | --cli-input-yaml]
[--generate-cli-skeleton <value>]
[--debug]
[--endpoint-url <value>]
[--no-verify-ssl]
[--no-paginate]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--no-sign-request]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]
[--cli-binary-format <value>]
[--no-cli-pager]
[--cli-auto-prompt]
[--no-cli-auto-prompt]
Options
--knowledge-base-id (string)
--message-template-id (string)
--message-template-content-sha256 (string)
$LATEST qualifier. It can be returned in MessageTemplateData or ExtendedMessageTemplateData . It’s calculated by content, language, defaultAttributes and Attachments of the message template. If not supplied, the message template version will be created based on the message template content that is referenced by the $LATEST qualifier by default.--cli-input-json | --cli-input-yaml (string) Reads arguments from the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, those values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally. This may not be specified along with --cli-input-yaml.
--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. Similarly, if provided yaml-input it will print a sample input YAML that can be used with --cli-input-yaml. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command. The generated JSON skeleton is not stable between versions of the AWS CLI and there are no backwards compatibility guarantees in the JSON skeleton generated.
Global Options
--debug (boolean)
Turn on debug logging.
--endpoint-url (string)
Override command’s default URL with the given URL.
--no-verify-ssl (boolean)
By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.
--no-paginate (boolean)
Disable automatic pagination. If automatic pagination is disabled, the AWS CLI will only make one call, for the first page of results.
--output (string)
The formatting style for command output.
- json
- text
- table
- yaml
- yaml-stream
--query (string)
A JMESPath query to use in filtering the response data.
--profile (string)
Use a specific profile from your credential file.
--region (string)
The region to use. Overrides config/env settings.
--version (string)
Display the version of this tool.
--color (string)
Turn on/off color output.
- on
- off
- auto
--no-sign-request (boolean)
Do not sign requests. Credentials will not be loaded if this argument is provided.
--ca-bundle (string)
The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings.
--cli-read-timeout (int)
The maximum socket read time in seconds. If the value is set to 0, the socket read will be blocking and not timeout. The default value is 60 seconds.
--cli-connect-timeout (int)
The maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not timeout. The default value is 60 seconds.
--cli-binary-format (string)
The formatting style to be used for binary blobs. The default format is base64. The base64 format expects binary blobs to be provided as a base64 encoded string. The raw-in-base64-out format preserves compatibility with AWS CLI V1 behavior and binary values must be passed literally. When providing contents from a file that map to a binary blob fileb:// will always be treated as binary and use the file contents directly regardless of the cli-binary-format setting. When using file:// the file contents will need to properly formatted for the configured cli-binary-format.
- base64
- raw-in-base64-out
--no-cli-pager (boolean)
Disable cli pager for output.
--cli-auto-prompt (boolean)
Automatically prompt for CLI input parameters.
--no-cli-auto-prompt (boolean)
Disable automatically prompt for CLI input parameters.
Output
messageTemplate -> (structure)
The message template.
messageTemplateArn -> (string)
messageTemplateId -> (string)
knowledgeBaseArn -> (string)
knowledgeBaseId -> (string)
name -> (string)
channelSubtype -> (string)
createdTime -> (timestamp)
lastModifiedTime -> (timestamp)
lastModifiedBy -> (string)
content -> (tagged union structure)
The content of the message template.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:email, sms.email -> (structure)
The content of the message template that applies to the email channel subtype.
subject -> (string)
body -> (structure)
The body to use in email messages.
plainText -> (tagged union structure)
The message body, in plain text format, to use in email messages that are based on the message template. We recommend using plain text format for email clients that don’t render HTML content and clients that are connected to high-latency networks, such as mobile devices.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:content.content -> (string)
html -> (tagged union structure)
The message body, in HTML format, to use in email messages that are based on the message template. We recommend using HTML format for email clients that render HTML content. You can include links, formatted text, and more in an HTML message.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:content.content -> (string)
headers -> (list)
The email headers to include in email messages.
(structure)
The email header to include in email messages.
name -> (string)
value -> (string)
sms -> (structure)
The content of the message template that applies to the SMS channel subtype.
body -> (structure)
The body to use in SMS messages.
plainText -> (tagged union structure)
The message body to use in SMS messages.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:content.content -> (string)
description -> (string)
language -> (string)
de_DE , en_US , es_ES , fr_FR , id_ID , it_IT , ja_JP , ko_KR , pt_BR , zh_CN , zh_TW
groupingConfiguration -> (structure)
The configuration information of the grouping of Amazon Q in Connect users.
criteria -> (string)
The criteria used for grouping Amazon Q in Connect users.
The following is the list of supported criteria values.
-
RoutingProfileArn: Grouping the users by their Amazon Connect routing profile ARN . User should have SearchRoutingProfile and DescribeRoutingProfile permissions when setting criteria to this value.
values -> (list)
The list of values that define different groups of Amazon Q in Connect users.
- When setting
criteriatoRoutingProfileArn, you need to provide a list of ARNs of Amazon Connect routing profiles as values of this parameter.
(string)
defaultAttributes -> (structure)
An 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.
systemAttributes -> (structure)
The system attributes that are used with the message template.
name -> (string)
customerEndpoint -> (structure)
The CustomerEndpoint attribute.
address -> (string)
customerEndpoint , or the number the customer dialed to call your contact center if used with systemEndpoint .systemEndpoint -> (structure)
The SystemEndpoint attribute.
address -> (string)
customerEndpoint , or the number the customer dialed to call your contact center if used with systemEndpoint .agentAttributes -> (structure)
The agent attributes that are used with the message template.
firstName -> (string)
lastName -> (string)
customerProfileAttributes -> (structure)
The customer profile attributes that are used with the message template.
profileId -> (string)
profileARN -> (string)
firstName -> (string)
middleName -> (string)
lastName -> (string)
accountNumber -> (string)
emailAddress -> (string)
phoneNumber -> (string)
additionalInformation -> (string)
partyType -> (string)
businessName -> (string)
birthDate -> (string)
gender -> (string)
mobilePhoneNumber -> (string)
homePhoneNumber -> (string)
businessPhoneNumber -> (string)
businessEmailAddress -> (string)
address1 -> (string)
address2 -> (string)
address3 -> (string)
address4 -> (string)
city -> (string)
county -> (string)
country -> (string)
postalCode -> (string)
province -> (string)
state -> (string)
shippingAddress1 -> (string)
shippingAddress2 -> (string)
shippingAddress3 -> (string)
shippingAddress4 -> (string)
shippingCity -> (string)
shippingCounty -> (string)
shippingCountry -> (string)
shippingPostalCode -> (string)
shippingProvince -> (string)
shippingState -> (string)
mailingAddress1 -> (string)
mailingAddress2 -> (string)
mailingAddress3 -> (string)
mailingAddress4 -> (string)
mailingCity -> (string)
mailingCounty -> (string)
mailingCountry -> (string)
mailingPostalCode -> (string)
mailingProvince -> (string)
mailingState -> (string)
billingAddress1 -> (string)
billingAddress2 -> (string)
billingAddress3 -> (string)
billingAddress4 -> (string)
billingCity -> (string)
billingCounty -> (string)
billingCountry -> (string)
billingPostalCode -> (string)
billingProvince -> (string)
billingState -> (string)
custom -> (map)
The custom attributes in customer profile attributes.
key -> (string)
value -> (string)
customAttributes -> (map)
The custom attributes that are used with the message template.
key -> (string)
value -> (string)
attributeTypes -> (list)
The types of attributes contain the message template.
(string)
attachments -> (list)
The message template attachments.
(structure)
Information about the message template attachment.
contentDisposition -> (string)
name -> (string)
uploadedTime -> (timestamp)
url -> (string)
urlExpiry -> (timestamp)
attachmentId -> (string)
isActive -> (boolean)
versionNumber -> (long)
messageTemplateContentSha256 -> (string)
$LATEST qualifier. It can be returned in MessageTemplateData or ExtendedMessageTemplateData . It’s calculated by content, language, defaultAttributes and Attachments of the message template.tags -> (map)
The tags used to organize, track, or control access for this resource.
key -> (string)
value -> (string)
© Copyright 2025, Amazon Web Services. Created using Sphinx.