-
Notifications
You must be signed in to change notification settings - Fork 17
/
awssns_TopicProps.go
30 lines (27 loc) · 1.09 KB
/
awssns_TopicProps.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package awssns
import (
"github.com/aws/aws-cdk-go/awscdk/v2/awskms"
)
// Properties for a new SNS topic.
//
// Example:
// topic := sns.NewTopic(this, jsii.String("Topic"), &topicProps{
// displayName: jsii.String("Customer subscription topic"),
// })
//
type TopicProps struct {
// Enables content-based deduplication for FIFO topics.
ContentBasedDeduplication *bool `field:"optional" json:"contentBasedDeduplication" yaml:"contentBasedDeduplication"`
// A developer-defined string that can be used to identify this SNS topic.
DisplayName *string `field:"optional" json:"displayName" yaml:"displayName"`
// Set to true to create a FIFO topic.
Fifo *bool `field:"optional" json:"fifo" yaml:"fifo"`
// A KMS Key, either managed by this CDK app, or imported.
MasterKey awskms.IKey `field:"optional" json:"masterKey" yaml:"masterKey"`
// A name for the topic.
//
// 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.
TopicName *string `field:"optional" json:"topicName" yaml:"topicName"`
}