Configures an AWS SESv2 event destination to send email sending event data to a Kinesis Firehose delivery stream.

Terraform Template

resource "aws_sesv2_configuration_set" "example" {
  configuration_set_name = "example"
}

resource "aws_sesv2_configuration_set_event_destination" "example" {
  configuration_set_name = aws_sesv2_configuration_set.example.configuration_set_name

  event_destination {
    enabled = true

    kinesis_firehose_destination {
      delivery_stream_arn = "aws_kinesis_firehose_delivery_stream.example.arn"
      iam_role_arn = "aws_iam_role.example.arn"
    }
    matching_event_types = ["SEND"]
  }
  event_destination_name = "example"
}