SnsDestination Class
Use an Amazon SNS topic as an event destination.
Example
ts
declare const topic: sns.Topic;
new appconfig.Extension(this, 'MyExtension', {
actions: [
new appconfig.Action({
actionPoints: [appconfig.ActionPoint.ON_DEPLOYMENT_START],
eventDestination: new appconfig.SnsDestination(topic),
}),
],
});
python
# topic: sns.Topic
appconfig.Extension(self, "MyExtension",
actions=[
appconfig.Action(
action_points=[appconfig.ActionPoint.ON_DEPLOYMENT_START],
event_destination=appconfig.SnsDestination(topic)
)
]
)
java
Topic topic;
Extension.Builder.create(this, "MyExtension")
.actions(List.of(
Action.Builder.create()
.actionPoints(List.of(ActionPoint.ON_DEPLOYMENT_START))
.eventDestination(new SnsDestination(topic))
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
Topic topic;
new Extension(this, "MyExtension", new ExtensionProps {
Actions = new [] {
new Action(new ActionProps {
ActionPoints = new [] { ActionPoint.ON_DEPLOYMENT_START },
EventDestination = new SnsDestination(topic)
}) }
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
var topic Topic
appconfig.NewExtension(this, jsii.String("MyExtension"), &ExtensionProps{
Actions: []Action{
appconfig.NewAction(&ActionProps{
ActionPoints: []ActionPoint{
appconfig.ActionPoint_ON_DEPLOYMENT_START,
},
EventDestination: appconfig.NewSnsDestination(topic),
}),
},
})
Initializer
Properties
The URI of the extension event destination.
policyDocumentPolicyDocumentpolicy_documentPolicyDocumentpolicyDocumentPolicyDocumentPolicyDocumentPolicyDocumentPolicyDocumentPolicyDocument#The IAM policy document to invoke the event destination.
The type of the extension event destination.