@Stability(value=Stable) public static final class CfnTopicProps.Builder extends Object implements software.amazon.jsii.Builder<CfnTopicProps>
CfnTopicProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnTopicProps.Builder contentBasedDeduplication(Boolean contentBasedDeduplication)
CfnTopicProps.getContentBasedDeduplication()contentBasedDeduplication - Enables content-based deduplication for FIFO topics.
ContentBasedDeduplication is set to false . If you create a FIFO topic and this attribute is false , you must specify a value for the MessageDeduplicationId parameter for the Publish action.ContentBasedDeduplication to true , Amazon SNS uses a SHA-256 hash to generate the MessageDeduplicationId using the body of the message (but not the attributes of the message).
(Optional) To override the generated value, you can specify a value for the the MessageDeduplicationId parameter for the Publish action.
this@Stability(value=Stable) public CfnTopicProps.Builder contentBasedDeduplication(IResolvable contentBasedDeduplication)
CfnTopicProps.getContentBasedDeduplication()contentBasedDeduplication - Enables content-based deduplication for FIFO topics.
ContentBasedDeduplication is set to false . If you create a FIFO topic and this attribute is false , you must specify a value for the MessageDeduplicationId parameter for the Publish action.ContentBasedDeduplication to true , Amazon SNS uses a SHA-256 hash to generate the MessageDeduplicationId using the body of the message (but not the attributes of the message).
(Optional) To override the generated value, you can specify a value for the the MessageDeduplicationId parameter for the Publish action.
this@Stability(value=Stable) public CfnTopicProps.Builder dataProtectionPolicy(Object dataProtectionPolicy)
CfnTopicProps.getDataProtectionPolicy()dataProtectionPolicy - `AWS::SNS::Topic.DataProtectionPolicy`.this@Stability(value=Stable) public CfnTopicProps.Builder displayName(String displayName)
CfnTopicProps.getDisplayName()displayName - The display name to use for an Amazon SNS topic with SMS subscriptions.this@Stability(value=Stable) public CfnTopicProps.Builder fifoTopic(Boolean fifoTopic)
CfnTopicProps.getFifoTopic()fifoTopic - Set to true to create a FIFO topic.this@Stability(value=Stable) public CfnTopicProps.Builder fifoTopic(IResolvable fifoTopic)
CfnTopicProps.getFifoTopic()fifoTopic - Set to true to create a FIFO topic.this@Stability(value=Stable) public CfnTopicProps.Builder kmsMasterKeyId(String kmsMasterKeyId)
CfnTopicProps.getKmsMasterKeyId()kmsMasterKeyId - The ID of an AWS managed customer master key (CMK) for Amazon SNS or a custom CMK.
For more information, see Key terms . For more examples, see [KeyId](https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters) in the AWS Key Management Service API Reference .
This property applies only to server-side-encryption .
this@Stability(value=Stable) public CfnTopicProps.Builder subscription(IResolvable subscription)
CfnTopicProps.getSubscription()subscription - The Amazon SNS subscriptions (endpoints) for this topic.this@Stability(value=Stable) public CfnTopicProps.Builder subscription(List<? extends Object> subscription)
CfnTopicProps.getSubscription()subscription - The Amazon SNS subscriptions (endpoints) for this topic.this@Stability(value=Stable) public CfnTopicProps.Builder tags(List<? extends CfnTag> tags)
CfnTopicProps.getTags()tags - The list of tags to add to a new topic.
To be able to tag a topic on creation, you must have the
sns:CreateTopicandsns:TagResourcepermissions.
this@Stability(value=Stable) public CfnTopicProps.Builder topicName(String topicName)
CfnTopicProps.getTopicName()topicName - The name of the topic you want to create.
Topic names must include only uppercase and lowercase ASCII letters, numbers, underscores, and hyphens, and must be between 1 and 256 characters long. FIFO topic names must end with .fifo .
If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the topic name. For more information, see Name type .
If you specify a name, you can't perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
this@Stability(value=Stable) public CfnTopicProps build()
build in interface software.amazon.jsii.Builder<CfnTopicProps>CfnTopicPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.