AWS::SES::ConfigurationSetEventDestination - AWS CloudFormation

AWS::SES::ConfigurationSetEventDestination

Specifies a configuration set event destination. An event destination is an AWS service that Amazon SES publishes email sending events to. When you specify an event destination, you provide one, and only one, destination. You can send event data to Amazon CloudWatch or Amazon Kinesis Data Firehose.

Note

You can't specify Amazon SNS event destinations in CloudFormation templates.

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

The event destination object.

Required: Yes

Type: EventDestination

Update requires: No interruption

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