AWS Amazon SES Event Destination
This page shows how to write Terraform and CloudFormation for Amazon SES Event Destination and write them securely.
aws_ses_event_destination (Terraform)
The Event Destination in Amazon SES can be configured in Terraform with the resource name aws_ses_event_destination
. The following sections describe 4 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "aws_ses_event_destination" "sns" {
name = "deadman-sns"
configuration_set_name = aws_ses_configuration_set.main.name
enabled = true
matching_types = ["send", "reject", "bounce", "complaint", "delivery", "open", "click", "renderingFailure"]
resource "aws_ses_event_destination" "ses_errors" {
name = "ses-error-sns-destination"
configuration_set_name = aws_ses_configuration_set.ms.name
enabled = true
matching_types = [
resource "aws_ses_event_destination" "transactional-event-destination" {
name = "transactional-event-sns"
configuration_set_name = aws_ses_configuration_set.transactional.name
enabled = true
matching_types = ["send", "reject", "bounce", "complaint", "delivery", "open", "click"]
resource "aws_ses_event_destination" "this" {
name = "skole-ses-destination"
configuration_set_name = aws_ses_configuration_set.this.name
matching_types = ["bounce", "complaint", "reject"]
enabled = true
Parameters
-
arn
optional computed - string -
configuration_set_name
required - string -
enabled
optional - bool -
id
optional computed - string -
matching_types
required - set of string -
name
required - string -
cloudwatch_destination
set block-
default_value
required - string -
dimension_name
required - string -
value_source
required - string
-
-
kinesis_destination
list block-
role_arn
required - string -
stream_arn
required - string
-
-
sns_destination
list block-
topic_arn
required - string
-
Explanation in Terraform Registry
Provides an SES event destination
AWS::SES::ConfigurationSetEventDestination EventDestination (CloudFormation)
The ConfigurationSetEventDestination EventDestination in SES can be configured in CloudFormation with the resource name AWS::SES::ConfigurationSetEventDestination EventDestination
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
CloudWatchDestination
An object that contains the names, default values, and sources of the dimensions associated with an Amazon CloudWatch event destination.
Required: No
Type: CloudWatchDestination
Update requires: No interruption
Enabled
Sets whether Amazon SES publishes events to this destination when you send an email with the associated configuration set. Set to true
to enable publishing to this destination; set to false
to prevent publishing to this destination. The default value is false
.
Required: No
Type: Boolean
Update requires: No interruption
KinesisFirehoseDestination
An object that contains the delivery stream ARN and the IAM role ARN associated with an Amazon Kinesis Firehose event destination.
Required: No
Type: KinesisFirehoseDestination
Update requires: No interruption
MatchingEventTypes
The type of email sending events to publish to the event destination.
send
- The call was successful and Amazon SES is attempting to deliver the email.reject
- Amazon SES determined that the email contained a virus and rejected it.bounce
- The recipient's mail server permanently rejected the email. This corresponds to a hard bounce.complaint
- The recipient marked the email as spam.delivery
- Amazon SES successfully delivered the email to the recipient's mail server.open
- The recipient received the email and opened it in their email client.click
- The recipient clicked one or more links in the email.renderingFailure
- Amazon SES did not send the email because of a template rendering issue.Required: Yes
Type: List of String
Update requires: No interruption
Name
The name of the event destination. The name must meet the following requirements:
- Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
- Contain 64 characters or fewer.Required: No
Type: String
Update requires: No interruption
Explanation in CloudFormation Registry
Contains information about an event destination.
Note When you create or update an event destination, you must provide one, and only one, destination. The destination can be Amazon CloudWatch, Amazon Kinesis Firehose or Amazon Simple Notification Service (Amazon SNS).
Event destinations are associated with configuration sets, which enable you to publish email sending events to Amazon CloudWatch, Amazon Kinesis Firehose, or Amazon Simple Notification Service (Amazon SNS). For information about using configuration sets, see the Amazon SES Developer Guide.
Frequently asked questions
What is AWS Amazon SES Event Destination?
AWS Amazon SES Event Destination is a resource for Amazon SES of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.
Where can I find the example code for the AWS Amazon SES Event Destination?
For Terraform, the hndrewaall/deadman, signifique-se/infrastructure and alfiesal/terraform-examples source code examples are useful. See the Terraform Example section for further details.