| Modifier and Type | Method and Description |
|---|---|
CfnTopic |
build() |
CfnTopic.Builder |
contentBasedDeduplication(Boolean contentBasedDeduplication)
Enables content-based deduplication for FIFO topics.
|
CfnTopic.Builder |
contentBasedDeduplication(IResolvable contentBasedDeduplication)
Enables content-based deduplication for FIFO topics.
|
static CfnTopic.Builder |
create(software.constructs.Construct scope,
String id) |
CfnTopic.Builder |
dataProtectionPolicy(Object dataProtectionPolicy)
`AWS::SNS::Topic.DataProtectionPolicy`.
|
CfnTopic.Builder |
displayName(String displayName)
The display name to use for an Amazon SNS topic with SMS subscriptions.
|
CfnTopic.Builder |
fifoTopic(Boolean fifoTopic)
Set to true to create a FIFO topic.
|
CfnTopic.Builder |
fifoTopic(IResolvable fifoTopic)
Set to true to create a FIFO topic.
|
CfnTopic.Builder |
kmsMasterKeyId(String kmsMasterKeyId)
The ID of an AWS managed customer master key (CMK) for Amazon SNS or a custom CMK.
|
CfnTopic.Builder |
subscription(IResolvable subscription)
The Amazon SNS subscriptions (endpoints) for this topic.
|
CfnTopic.Builder |
subscription(List<? extends Object> subscription)
The Amazon SNS subscriptions (endpoints) for this topic.
|
CfnTopic.Builder |
tags(List<? extends CfnTag> tags)
The list of tags to add to a new topic.
|
CfnTopic.Builder |
topicName(String topicName)
The name of the topic you want to create.
|
@Stability(value=Stable) public static CfnTopic.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnTopic.SubscriptionProperty.Builder.@Stability(value=Stable) public CfnTopic.Builder contentBasedDeduplication(Boolean contentBasedDeduplication)
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.
contentBasedDeduplication - Enables content-based deduplication for FIFO topics. This parameter is required.this@Stability(value=Stable) public CfnTopic.Builder contentBasedDeduplication(IResolvable contentBasedDeduplication)
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.
contentBasedDeduplication - Enables content-based deduplication for FIFO topics. This parameter is required.this@Stability(value=Stable) public CfnTopic.Builder dataProtectionPolicy(Object dataProtectionPolicy)
dataProtectionPolicy - `AWS::SNS::Topic.DataProtectionPolicy`. This parameter is required.this@Stability(value=Stable) public CfnTopic.Builder displayName(String displayName)
displayName - The display name to use for an Amazon SNS topic with SMS subscriptions. This parameter is required.this@Stability(value=Stable) public CfnTopic.Builder fifoTopic(Boolean fifoTopic)
fifoTopic - Set to true to create a FIFO topic. This parameter is required.this@Stability(value=Stable) public CfnTopic.Builder fifoTopic(IResolvable fifoTopic)
fifoTopic - Set to true to create a FIFO topic. This parameter is required.this@Stability(value=Stable) public CfnTopic.Builder kmsMasterKeyId(String kmsMasterKeyId)
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 .
kmsMasterKeyId - The ID of an AWS managed customer master key (CMK) for Amazon SNS or a custom CMK. This parameter is required.this@Stability(value=Stable) public CfnTopic.Builder subscription(IResolvable subscription)
subscription - The Amazon SNS subscriptions (endpoints) for this topic. This parameter is required.this@Stability(value=Stable) public CfnTopic.Builder subscription(List<? extends Object> subscription)
subscription - The Amazon SNS subscriptions (endpoints) for this topic. This parameter is required.this@Stability(value=Stable) public CfnTopic.Builder tags(List<? extends CfnTag> tags)
To be able to tag a topic on creation, you must have the
sns:CreateTopicandsns:TagResourcepermissions.
tags - The list of tags to add to a new topic. This parameter is required.this@Stability(value=Stable) public CfnTopic.Builder topicName(String topicName)
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.
topicName - The name of the topic you want to create. This parameter is required.thisCopyright © 2022. All rights reserved.