

# EventDestinationDefinition
<a name="API_EventDestinationDefinition"></a>

An object that defines the event destination. Specifically, it defines which services receive events from emails sent using the configuration set that the event destination is associated with. Also defines the types of events that are sent to the event destination.

## Contents
<a name="API_EventDestinationDefinition_Contents"></a>

 ** CloudWatchDestination **   <a name="pinpoint-Type-EventDestinationDefinition-CloudWatchDestination"></a>
An object that defines an Amazon CloudWatch destination for email events. You can use Amazon CloudWatch to monitor and gain insights on your email sending metrics.  
Type: [CloudWatchDestination](API_CloudWatchDestination.md) object  
Required: No

 ** Enabled **   <a name="pinpoint-Type-EventDestinationDefinition-Enabled"></a>
If `true`, the event destination is enabled. When the event destination is enabled, the specified event types are sent to the destinations in this `EventDestinationDefinition`.  
If `false`, the event destination is disabled. When the event destination is disabled, events aren't sent to the specified destinations.  
Type: Boolean  
Required: No

 ** KinesisFirehoseDestination **   <a name="pinpoint-Type-EventDestinationDefinition-KinesisFirehoseDestination"></a>
An object that defines an Amazon Kinesis Data Firehose destination for email events. You can use Amazon Kinesis Data Firehose to stream data to other services, such as Amazon S3 and Amazon Redshift.  
Type: [KinesisFirehoseDestination](API_KinesisFirehoseDestination.md) object  
Required: No

 ** MatchingEventTypes **   <a name="pinpoint-Type-EventDestinationDefinition-MatchingEventTypes"></a>
An array that specifies which events Amazon Pinpoint should send to the destinations in this `EventDestinationDefinition`.  
Type: Array of strings  
Valid Values: `SEND | REJECT | BOUNCE | COMPLAINT | DELIVERY | OPEN | CLICK | RENDERING_FAILURE`   
Required: No

 ** PinpointDestination **   <a name="pinpoint-Type-EventDestinationDefinition-PinpointDestination"></a>
An object that defines a Amazon Pinpoint destination for email events. You can use Amazon Pinpoint events to create attributes in Amazon Pinpoint projects. You can use these attributes to create segments for your campaigns.  
Type: [PinpointDestination](API_PinpointDestination.md) object  
Required: No

 ** SnsDestination **   <a name="pinpoint-Type-EventDestinationDefinition-SnsDestination"></a>
An object that defines an Amazon SNS destination for email events. You can use Amazon SNS to send notification when certain email events occur.  
Type: [SnsDestination](API_SnsDestination.md) object  
Required: No

## See Also
<a name="API_EventDestinationDefinition_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/pinpoint-email-2018-07-26/EventDestinationDefinition) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/pinpoint-email-2018-07-26/EventDestinationDefinition) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/pinpoint-email-2018-07-26/EventDestinationDefinition) 