Terraform resource for managing an AWS SESv2 (Simple Email V2) Contact List.
resource "aws_sesv2_contact_list" "example" {
contact_list_name = "example"
}
resource "aws_sesv2_contact_list" "example" {
contact_list_name = "example"
description = "description"
topic {
default_subscription_status = "OPT_IN"
description = "topic description"
display_name = "Example Topic"
topic_name = "example-topic"
}
}
The following arguments are required:
contact_list_name
- (Required) Name of the contact list.The following arguments are optional:
description
- (Optional) Description of what the contact list is about.tags
- (Optional) Key-value map of resource tags for the contact list. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.topic
- (Optional) Configuration block(s) with topic for the contact list. Detailed below.The following arguments are required:
default_subscription_status
- (Required) Default subscription status to be applied to a contact if the contact has not noted their preference for subscribing to a topic.display_name
- (Required) Name of the topic the contact will see.topic_name
- (Required) Name of the topic.The following arguments are optional:
description
- (Optional) Description of what the topic is about, which the contact will see.This resource exports the following attributes in addition to the arguments above:
created_timestamp
- Timestamp noting when the contact list was created in ISO 8601 format.id
- Name of the contact list.last_updated_timestamp
- Timestamp noting the last time the contact list was updated in ISO 8601 format.In Terraform v1.5.0 and later, use an import
block to import SESv2 (Simple Email V2) Contact List using the id
. For example:
import {
to = aws_sesv2_contact_list.example
id = "example"
}
Using terraform import
, import SESv2 (Simple Email V2) Contact List using the id
. For example:
% terraform import aws_sesv2_contact_list.example example