AWS Amazon SES Event Destination

This page shows how to write Terraform and CloudFormation for Amazon SES Event Destination and write them securely.

code-icon

Fix issues in your cloud & app configurations

Test for misconfigurations of this resource in your cloud.

get-started-button

Terraform Example (aws_ses_event_destination)

Provides an SES event destination

Parameters

Example Usage (from GitHub)

github-iconhndrewaall/deadman
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"]

github-iconsignifique-se/infrastructure
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 = [
github-iconalfiesal/terraform-examples
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"]

github-iconskoleapp/skole-infra
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

CloudFormation Example (AWS::SES::ConfigurationSetEventDestination EventDestination)

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.

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

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.