github.com/vtorhonen/terraform@v0.9.0-beta2.0.20170307220345-5d894e4ffda7/website/source/docs/providers/aws/r/ses_event_destination.markdown (about) 1 --- 2 layout: "aws" 3 page_title: "AWS: ses_event_destination" 4 sidebar_current: "docs-aws-resource-ses-event-destination" 5 description: |- 6 Provides an SES event destination 7 --- 8 9 # aws\_ses\_event_destination 10 11 Provides an SES event destination 12 13 ## Example Usage 14 15 ``` 16 # Add a firehose event destination to a configuration set 17 resource "aws_ses_event_destination" "kinesis" { 18 name = "event-destination-kinesis" 19 configuration_set_name = "${aws_ses_configuration_set.test.name}" 20 enabled = true 21 matching_types = ["bounce", "send"] 22 23 kinesis_destination = { 24 stream_arn = "${aws_kinesis_firehose_delivery_stream.test_stream.arn}" 25 role_arn = "${aws_iam_role.firehose_role.arn}" 26 } 27 } 28 29 # CloudWatch event destination 30 resource "aws_ses_event_destination" "cloudwatch" { 31 name = "event-destination-cloudwatch" 32 configuration_set_name = "${aws_ses_configuration_set.test.name}" 33 enabled = true 34 matching_types = ["bounce", "send"] 35 36 cloudwatch_destination = { 37 default_value = "default" 38 dimension_name = "dimension" 39 value_source = "emailHeader" 40 } 41 } 42 ``` 43 44 ## Argument Reference 45 46 The following arguments are supported: 47 48 * `name` - (Required) The name of the event destination 49 * `configuration_set_name` - (Required) The name of the configuration set 50 * `enabled` - (Optional) If true, the event destination will be enabled 51 * `matching_types` - (Required) A list of matching types. May be any of `"send"`, `"reject"`, `"bounce"`, `"complaint"`, or `"delivery"`. 52 * `cloudwatch_destination` - (Optional) CloudWatch destination for the events 53 * `kinesis_destination` - (Optional) Send the events to a kinesis firehose destination 54 55 ~> **NOTE:** You can specify `"cloudwatch_destination"` or `"kinesis_destination"` but not both 56 57 CloudWatch Destination requires the following: 58 59 * `default_value` - (Required) The default value for the event 60 * `dimension_name` - (Required) The name for the dimension 61 * `value_source` - (Required) The source for the value. It can be either `"messageTag"` or `"emailHeader"` 62 63 Kinesis Destination requires the following: 64 65 * `stream_arn` - (Required) The ARN of the Kinesis Stream 66 * `role_arn` - (Required) The ARN of the role that has permissions to access the Kinesis Stream 67