SnsDestinationProperty Struct
An object that defines an Amazon SNS destination for events.
You can use Amazon SNS to send notification when certain events occur.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_smsvoice as smsvoice } from 'aws-cdk-lib';
const snsDestinationProperty: smsvoice.CfnConfigurationSet.SnsDestinationProperty = {
topicArn: 'topicArn',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_smsvoice as smsvoice
sns_destination_property = smsvoice.CfnConfigurationSet.SnsDestinationProperty(
topic_arn="topicArn"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.smsvoice.*;
SnsDestinationProperty snsDestinationProperty = SnsDestinationProperty.builder()
.topicArn("topicArn")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SMSVOICE;
var snsDestinationProperty = new SnsDestinationProperty {
TopicArn = "topicArn"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
snsDestinationProperty := &SnsDestinationProperty{
TopicArn: jsii.String("topicArn"),
}
Properties
The Amazon Resource Name (ARN) of the Amazon SNS topic that you want to publish events to.