Terraform 0.11
aws_ses_event_destination

aws_ses_event_destination
एक SES घटना गंतव्य प्रदान करता है
उदाहरण उपयोग
CloudWatch गंतव्य
resource "aws_ses_event_destination" "cloudwatch" { name = "event-destination-cloudwatch" configuration_set_name = "${aws_ses_configuration_set.example.name}" enabled = true matching_types = ["bounce", "send"] cloudwatch_destination = { default_value = "default" dimension_name = "dimension" value_source = "emailHeader" } }
Kinesis गंतव्य
resource "aws_ses_event_destination" "kinesis" { name = "event-destination-kinesis" configuration_set_name = "${aws_ses_configuration_set.example.name}" enabled = true matching_types = ["bounce", "send"] kinesis_destination = { stream_arn = "${aws_kinesis_firehose_delivery_stream.example.arn}" role_arn = "${aws_iam_role.example.arn}" } }
SNS गंतव्य
resource "aws_ses_event_destination" "sns" { name = "event-destination-sns" configuration_set_name = "${aws_ses_configuration_set.example.name}" enabled = true matching_types = ["bounce", "send"] sns_destination { topic_arn = "${aws_sns_topic.example.arn}" } }
तर्क संदर्भ
निम्नलिखित तर्क समर्थित हैं:
-
name
- (आवश्यक) घटना स्थल का नाम -
configuration_set_name
- (आवश्यक) कॉन्फ़िगरेशन सेट का नाम -
enabled
- (वैकल्पिक) यदि सही है, तो ईवेंट गंतव्य सक्षम हो जाएगा -
matching_types
- (आवश्यक) मिलान प्रकारों की एक सूची।"send"
,"reject"
,"bounce"
,"complaint"
,"delivery"
,"open"
या"click"
। -
cloudwatch_destination
- (वैकल्पिक) घटनाओं के लिए CloudWatch गंतव्य -
kinesis_destination
- (वैकल्पिक) kinesis firehose गंतव्य पर ईवेंट भेजें -
sns_destination
- (वैकल्पिक) घटनाओं को SNS विषय पर भेजें
नोट: आप
"cloudwatch_destination"
या"kinesis_destination"
निर्दिष्ट कर सकते हैं लेकिन दोनों नहीं
Cloudwatch_destination तर्क संदर्भ
-
default_value
- (आवश्यक) घटना के लिए डिफ़ॉल्ट मान -
dimension_name
- (आवश्यक) आयाम का नाम -
value_source
- (आवश्यक) मूल्य का स्रोत। यह या तो"emailHeader"
या"emailHeader"
kinesis_destination तर्क संदर्भ
-
stream_arn
- (आवश्यक) Kinesis स्ट्रीम का ARN -
role_arn
- (आवश्यक) भूमिका की ARN जिसमेंrole_arn
स्ट्रीम को एक्सेस करने की अनुमति है
sns_destination तर्क संदर्भ
-
topic_arn
- (आवश्यक) SNS विषय का ARN