AWS::SES::ConfigurationSetEventDestination - AWS CloudFormation
AWS 文档中描述的 AWS 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅中国的 AWS 服务入门

AWS::SES::ConfigurationSetEventDestination

指定配置集事件目标。事件目标是一种 AWS 服务,Amazon SES 会将电子邮件发送事件发布到该服务。在指定事件目标时,您必须提供一个(且只能提供一个)目标。您可以将事件数据发送到 Amazon CloudWatch 或 Amazon Kinesis Data Firehose。有关使用配置集的信息,请参阅 Amazon SES 开发人员指南

注意

您不能在 CloudFormation 模板中指定 Amazon SNS 事件目标。

语法

要在 AWS CloudFormation 模板中声明此实体,请使用以下语法:

JSON

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

YAML

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

属性

ConfigurationSetName

包含要更新的事件目标的配置集的名称。

必需:是

类型:字符串

Update requires: Replacement

EventDestination

要应用于指定配置集的事件目标对象。

必需:是

类型EventDestination

Update requires: No interruption

示例

指定配置集的事件目标。

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