Class CfnMessageTemplateVersion
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.wisdom.CfnMessageTemplateVersion
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IMessageTemplateVersionRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:47.525Z")
@Stability(Stable)
public class CfnMessageTemplateVersion
extends CfnResource
implements IInspectable, IMessageTemplateVersionRef
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.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.wisdom.*;
CfnMessageTemplateVersion cfnMessageTemplateVersion = CfnMessageTemplateVersion.Builder.create(this, "MyCfnMessageTemplateVersion")
.messageTemplateArn("messageTemplateArn")
// the properties below are optional
.messageTemplateContentSha256("messageTemplateContentSha256")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnMessageTemplateVersion.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.wisdom.IMessageTemplateVersionRef
IMessageTemplateVersionRef.Jsii$Default, IMessageTemplateVersionRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnMessageTemplateVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnMessageTemplateVersion(software.amazon.jsii.JsiiObjectRef objRef) CfnMessageTemplateVersion(software.constructs.Construct scope, String id, CfnMessageTemplateVersionProps props) Create a newAWS::Wisdom::MessageTemplateVersion. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringThe Amazon Resource Name (ARN) of the Message Template Version.The version number for this Message Template Version.The Amazon Resource Name (ARN) of the message template.The content SHA256 of the message template.A reference to a MessageTemplateVersion resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnMessageTemplateVersion.renderProperties(Map<String, Object> props) voidsetMessageTemplateArn(String value) The Amazon Resource Name (ARN) of the message template.voidThe content SHA256 of the message template.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnMessageTemplateVersion
protected CfnMessageTemplateVersion(software.amazon.jsii.JsiiObjectRef objRef) -
CfnMessageTemplateVersion
protected CfnMessageTemplateVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnMessageTemplateVersion
@Stability(Stable) public CfnMessageTemplateVersion(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnMessageTemplateVersionProps props) Create a newAWS::Wisdom::MessageTemplateVersion.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForMessageTemplateVersion
@Stability(Stable) @NotNull public static String arnForMessageTemplateVersion(@NotNull IMessageTemplateVersionRef resource) - Parameters:
resource- This parameter is required.
-
isCfnMessageTemplateVersion
Checks whether the given object is a CfnMessageTemplateVersion.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrMessageTemplateVersionArn
The Amazon Resource Name (ARN) of the Message Template Version. -
getAttrMessageTemplateVersionNumber
The version number for this Message Template Version. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getMessageTemplateVersionRef
A reference to a MessageTemplateVersion resource.- Specified by:
getMessageTemplateVersionRefin interfaceIMessageTemplateVersionRef
-
getMessageTemplateArn
The Amazon Resource Name (ARN) of the message template. -
setMessageTemplateArn
The Amazon Resource Name (ARN) of the message template. -
getMessageTemplateContentSha256
The content SHA256 of the message template. -
setMessageTemplateContentSha256
The content SHA256 of the message template.
-