create_message_template_version
¶
create_message_template_version(
knowledge_base_id: UuidOrArn,
message_template_id: UuidOrArnOrEitherWithQualifier,
*,
config_overrides: Optional[QConnectClientConfig] = None,
message_template_content_sha256: Optional[MessageTemplateContentSha256] = None,
) -> CreateMessageTemplateVersionResponse
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.
Parameters:
-
knowledge_base_id(UuidOrArn) –The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
-
message_template_id(UuidOrArnOrEitherWithQualifier) –The identifier of the message template. Can be either the ID or the ARN. It cannot contain any qualifier.
-
message_template_content_sha256(Optional[MessageTemplateContentSha256], default:None) –The checksum value of the message template content that is referenced by the
$LATESTqualifier. It can be returned inMessageTemplateDataorExtendedMessageTemplateData. It’s calculated by content, language,defaultAttributesandAttachmentsof the message template. If not supplied, the message template version will be created based on the message template content that is referenced by the$LATESTqualifier by default.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–The request could not be processed because of conflict in the current state of the resource. For example, if you're using a
CreateAPI (such asCreateAssistant) that accepts name, a conflicting resource (usually with the same name) is being created or mutated. -
ResourceNotFoundException–The specified resource does not exist.
-
ServiceQuotaExceededException–You've exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use service quotas to request a service quota increase.
-
ThrottlingException–The throttling limit has been exceeded.
-
ValidationException–The input fails to satisfy the constraints specified by a service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_qconnect/_services/q_connect.py
6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 | |