AWS CloudFormation
User Guide (API Version 2010-05-15)

AWS::SES::ConfigurationSetEventDestination

The AWS::SES::ConfigurationSetEventDestination resource specifies a configuration set event destination for Amazon SES. For more information, see CreateConfigurationSetEventDestination in the Amazon Simple Email Service API Reference.

Note

When you create or update an event destination, you must provide one, and only one, destination. The destination can be Amazon CloudWatch or Amazon Kinesis Data Firehose.

An event destination is the AWS service to which Amazon SES publishes the email sending events associated with a configuration set. For information, see Using Amazon SES Configuration Sets in the Amazon Simple Email Service Developer Guide.

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 the event destination should be associated with.

Required: Yes

Type: String

Update requires: Replacement

EventDestination

The AWS service that email sending event information will be published to.

Required: Yes

Type: Amazon SES ConfigurationSetEventDestination EventDestination

Update requires: No interruption

Example

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

See Also