Interface TopicAttributes
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
TopicAttributes.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:49.101Z")
@Stability(Stable)
public interface TopicAttributes
extends software.amazon.jsii.JsiiSerializable
Represents an SNS topic defined outside of this stack.
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.sns.*;
TopicAttributes topicAttributes = TopicAttributes.builder()
.topicArn("topicArn")
// the properties below are optional
.contentBasedDeduplication(false)
.keyArn("keyArn")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forTopicAttributesstatic final classAn implementation forTopicAttributes -
Method Summary
Modifier and TypeMethodDescriptionstatic TopicAttributes.Builderbuilder()default BooleanWhether content-based deduplication is enabled.default StringKMS encryption key, if this topic is server-side encrypted by a KMS key.The ARN of the SNS topic.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getTopicArn
The ARN of the SNS topic. -
getContentBasedDeduplication
Whether content-based deduplication is enabled.Only applicable for FIFO topics.
Default: false
-
getKeyArn
KMS encryption key, if this topic is server-side encrypted by a KMS key.Default: - None
-
builder
- Returns:
- a
TopicAttributes.BuilderofTopicAttributes
-