# SnsDestinationProperty

An object that defines an Amazon SNS destination for email events.

You can use Amazon SNS to send notification when certain email events occur.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_pinpointemail as pinpointemail } from 'aws-cdk-lib';
const snsDestinationProperty: pinpointemail.CfnConfigurationSetEventDestination.SnsDestinationProperty = {
  topicArn: 'topicArn',
};
```

Python:

```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_pinpointemail as pinpointemail

sns_destination_property = pinpointemail.CfnConfigurationSetEventDestination.SnsDestinationProperty(
    topic_arn="topicArn"
)
```

Java:

```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.pinpointemail.*;

SnsDestinationProperty snsDestinationProperty = SnsDestinationProperty.builder()
        .topicArn("topicArn")
        .build();
```

C# / .NET:

```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.PinpointEmail;

var snsDestinationProperty = new SnsDestinationProperty {
    TopicArn = "topicArn"
};
```

Golang:

```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

- `topicArn`: string (required) — The Amazon Resource Name (ARN) of the Amazon SNS topic that you want to publish email events to.

  For more information about Amazon SNS topics, see the [Amazon SNS Developer Guide](https://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html) .
