AWS::SES::ConfigurationSetEventDestination - AWS CloudFormation

AWS::SES::ConfigurationSetEventDestination

Specifies a configuration set event destination. Events include message sends, deliveries, opens, clicks, bounces, and complaints. Event destinations are places that you can send information about these events to. For example, you can send event data to Amazon SNS to receive notifications when you receive bounces or complaints, or you can use Amazon Kinesis Data Firehose to stream data to Amazon S3 for long-term storage.

A single configuration set can include more than one event destination.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::SES::ConfigurationSetEventDestination", "Properties" : { "ConfigurationSetName" : String, "EventDestination" : EventDestination } }

YAML

Type: AWS::SES::ConfigurationSetEventDestination Properties: ConfigurationSetName: String EventDestination: EventDestination

Properties

ConfigurationSetName

The name of the configuration set that contains the event destination.

Required: Yes

Type: String

Update requires: Replacement

EventDestination

An object that defines the event destination.

Required: Yes

Type: EventDestination

Update requires: No interruption

Return values

Fn::GetAtt

Examples

Specifies an event destination for a configuration set.

JSON

{ "AWSTemplateFormatVersion": "2010-09-09", "Description": "AWS SES ConfigurationSetEventDestination Sample Template", "Parameters": { "ConfigSetName": { "Type": "String" }, "EventDestinationName": { "Type": "String" }, "EventType1": { "Type": "String" }, "EventType2": { "Type": "String" }, "EventType3": { "Type": "String" }, "DimensionName1": { "Type": "String" }, "DimensionValueSource1": { "Type": "String" }, "DefaultDimensionValue1": { "Type": "String" }, "DimensionName2": { "Type": "String" }, "DimensionValueSource2": { "Type": "String" }, "DefaultDimensionValue2": { "Type": "String" } }, "Resources": { "ConfigSet": { "Type": "AWS::SES::ConfigurationSet", "Properties": { "Name": { "Ref": "ConfigSetName" } } }, "CWEventDestination": { "Type": "AWS::SES::ConfigurationSetEventDestination", "Properties": { "ConfigurationSetName": { "Ref": "ConfigSet" }, "EventDestination": { "Name": { "Ref": "EventDestinationName" }, "Enabled": true, "MatchingEventTypes": [ { "Ref": "EventType1" }, { "Ref": "EventType2" }, { "Ref": "EventType3" } ], "CloudWatchDestination": { "DimensionConfigurations": [ { "DimensionName": { "Ref": "DimensionName1" }, "DimensionValueSource": { "Ref": "DimensionValueSource1" }, "DefaultDimensionValue": { "Ref": "DefaultDimensionValue1" } }, { "DimensionName": { "Ref": "DimensionName2" }, "DimensionValueSource": { "Ref": "DimensionValueSource2" }, "DefaultDimensionValue": { "Ref": "DefaultDimensionValue2" } } ] } } } } } }

YAML

AWSTemplateFormatVersion: 2010-09-09 Description: AWS SES ConfigurationSetEventDestination Sample Template Parameters: ConfigSetName: Type: String EventDestinationName: Type: String EventType1: Type: String EventType2: Type: String EventType3: Type: String DimensionName1: Type: String DimensionValueSource1: Type: String DefaultDimensionValue1: Type: String DimensionName2: Type: String DimensionValueSource2: Type: String DefaultDimensionValue2: Type: String Resources: ConfigSet: Type: 'AWS::SES::ConfigurationSet' Properties: Name: !Ref ConfigSetName CWEventDestination: Type: 'AWS::SES::ConfigurationSetEventDestination' Properties: ConfigurationSetName: !Ref ConfigSet EventDestination: Name: !Ref EventDestinationName Enabled: true MatchingEventTypes: - !Ref EventType1 - !Ref EventType2 - !Ref EventType3 CloudWatchDestination: DimensionConfigurations: - DimensionName: !Ref DimensionName1 DimensionValueSource: !Ref DimensionValueSource1 DefaultDimensionValue: !Ref DefaultDimensionValue1 - DimensionName: !Ref DimensionName2 DimensionValueSource: !Ref DimensionValueSource2 DefaultDimensionValue: !Ref DefaultDimensionValue2