mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-16 19:00:27 -04:00
2.3 KiB
2.3 KiB
layout, page_title, sidebar_current, description
| layout | page_title | sidebar_current | description |
|---|---|---|---|
| aws | AWS: ses_event_destination | docs-aws-resource-ses-event-destination | Provides an SES event destination |
aws_ses_event_destination
Provides an SES event destination
Example Usage
# Add a firehose event destination to a configuration set
resource "aws_ses_event_destination" "kinesis" {
name = "event-destination-kinesis"
configuration_set_name = "${aws_ses_configuration_set.test.name}"
enabled = true
matching_types = ["bounce", "send"]
kinesis_destination = {
stream_arn = "${aws_kinesis_firehose_delivery_stream.test_stream.arn}"
role_arn = "${aws_iam_role.firehose_role.arn}"
}
}
# CloudWatch event destination
resource "aws_ses_event_destination" "cloudwatch" {
name = "event-destination-cloudwatch"
configuration_set_name = "${aws_ses_configuration_set.test.name}"
enabled = true
matching_types = ["bounce", "send"]
cloudwatch_destination = {
default_value = "default"
dimension_name = "dimension"
value_source = "emailHeader"
}
}
Argument Reference
The following arguments are supported:
name- (Required) The name of the event destinationconfiguration_set_name- (Required) The name of the configuration setenabled- (Optional) If true, the event destination will be enabledmatching_types- (Required) A list of matching types. May be any of"send","reject","bounce","complaint", or"delivery".cloudwatch_destination- (Optional) CloudWatch destination for the eventskinesis_destination- (Optional) Send the events to a kinesis firehose destination
~> NOTE: You can specify "cloudwatch_destination" or "kinesis_destination" but not both
CloudWatch Destination requires the following:
default_value- (Required) The default value for the eventdimension_name- (Required) The name for the dimensionvalue_source- (Required) The source for the value. It can be either"messageTag"or"emailHeader"
Kinesis Destination requires the following:
stream_arn- (Required) The ARN of the Kinesis Streamrole_arn- (Required) The ARN of the role that has permissions to access the Kinesis Stream