# EventDestinationProperty

Contains information about an event destination.

Event destinations are associated with configuration sets, which enable you to publish message sending events to CloudWatch, Firehose, or Amazon SNS.

- Source: Generated at build time
- Type last changed: v2.217.0 · 25 Sep 2025

## Example

TypeScript:

```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 eventDestinationProperty: smsvoice.CfnConfigurationSet.EventDestinationProperty = {
  enabled: false,
  eventDestinationName: 'eventDestinationName',
  matchingEventTypes: ['matchingEventTypes'],

  // the properties below are optional
  cloudWatchLogsDestination: {
    iamRoleArn: 'iamRoleArn',
    logGroupArn: 'logGroupArn',
  },
  kinesisFirehoseDestination: {
    deliveryStreamArn: 'deliveryStreamArn',
    iamRoleArn: 'iamRoleArn',
  },
  snsDestination: {
    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_smsvoice as smsvoice

event_destination_property = smsvoice.CfnConfigurationSet.EventDestinationProperty(
    enabled=False,
    event_destination_name="eventDestinationName",
    matching_event_types=["matchingEventTypes"],

    # the properties below are optional
    cloud_watch_logs_destination=smsvoice.CfnConfigurationSet.CloudWatchLogsDestinationProperty(
        iam_role_arn="iamRoleArn",
        log_group_arn="logGroupArn"
    ),
    kinesis_firehose_destination=smsvoice.CfnConfigurationSet.KinesisFirehoseDestinationProperty(
        delivery_stream_arn="deliveryStreamArn",
        iam_role_arn="iamRoleArn"
    ),
    sns_destination=smsvoice.CfnConfigurationSet.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.smsvoice.*;

EventDestinationProperty eventDestinationProperty = EventDestinationProperty.builder()
        .enabled(false)
        .eventDestinationName("eventDestinationName")
        .matchingEventTypes(List.of("matchingEventTypes"))

        // the properties below are optional
        .cloudWatchLogsDestination(CloudWatchLogsDestinationProperty.builder()
                .iamRoleArn("iamRoleArn")
                .logGroupArn("logGroupArn")
                .build())
        .kinesisFirehoseDestination(KinesisFirehoseDestinationProperty.builder()
                .deliveryStreamArn("deliveryStreamArn")
                .iamRoleArn("iamRoleArn")
                .build())
        .snsDestination(SnsDestinationProperty.builder()
                .topicArn("topicArn")
                .build())
        .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.SMSVOICE;

var eventDestinationProperty = new EventDestinationProperty {
    Enabled = false,
    EventDestinationName = "eventDestinationName",
    MatchingEventTypes = new [] { "matchingEventTypes" },

    // the properties below are optional
    CloudWatchLogsDestination = new CloudWatchLogsDestinationProperty {
        IamRoleArn = "iamRoleArn",
        LogGroupArn = "logGroupArn"
    },
    KinesisFirehoseDestination = new KinesisFirehoseDestinationProperty {
        DeliveryStreamArn = "deliveryStreamArn",
        IamRoleArn = "iamRoleArn"
    },
    SnsDestination = 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"

eventDestinationProperty := &EventDestinationProperty{
	Enabled: jsii.Boolean(false),
	EventDestinationName: jsii.String("eventDestinationName"),
	MatchingEventTypes: []*string{
		jsii.String("matchingEventTypes"),
	},

	// the properties below are optional
	CloudWatchLogsDestination: &CloudWatchLogsDestinationProperty{
		IamRoleArn: jsii.String("iamRoleArn"),
		LogGroupArn: jsii.String("logGroupArn"),
	},
	KinesisFirehoseDestination: &KinesisFirehoseDestinationProperty{
		DeliveryStreamArn: jsii.String("deliveryStreamArn"),
		IamRoleArn: jsii.String("iamRoleArn"),
	},
	SnsDestination: &SnsDestinationProperty{
		TopicArn: jsii.String("topicArn"),
	},
}
```

## Properties

- `cloudWatchLogsDestination`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnConfigurationSet.CloudWatchLogsDestinationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_smsvoice.CfnConfigurationSet.CloudWatchLogsDestinationProperty.html) — An object that contains information about an event destination that sends logging events to Amazon CloudWatch logs.

- `enabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) (required) — When set to true events will be logged.

- `eventDestinationName`: string (required) — The name of the EventDestination.

- `kinesisFirehoseDestination`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnConfigurationSet.KinesisFirehoseDestinationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_smsvoice.CfnConfigurationSet.KinesisFirehoseDestinationProperty.html) — An object that contains information about an event destination for logging to Amazon Data Firehose.

- `matchingEventTypes`: string[] (required) — An array of event types that determine which events to log.

  > The `TEXT_SENT` event type is not supported.

- `snsDestination`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnConfigurationSet.SnsDestinationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_smsvoice.CfnConfigurationSet.SnsDestinationProperty.html) — An object that contains information about an event destination that sends logging events to Amazon SNS.
