Skip to content

Resource: awsSesv2ContactList

Terraform resource for managing an AWS SESv2 (Simple Email V2) Contact List.

Example Usage

Basic Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.sesv2ContactList.Sesv2ContactList(this, "example", {
  contactListName: "example",
});

Extended Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.sesv2ContactList.Sesv2ContactList(this, "example", {
  contactListName: "example",
  description: "description",
  topic: [
    {
      defaultSubscriptionStatus: "OPT_IN",
      description: "topic description",
      displayName: "Example Topic",
      topicName: "example-topic",
    },
  ],
});

Argument Reference

The following arguments are required:

  • contactListName - (Required) The name of the contact list.

The following arguments are optional:

  • description - (Optional) A 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 defaultTags 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.

topic

The following arguments are required:

  • defaultSubscriptionStatus - (Required) The default subscription status to be applied to a contact if the contact has not noted their preference for subscribing to a topic.
  • displayName - (Required) The name of the topic the contact will see.
  • topicName - (Required) The name of the topic.

The following arguments are optional:

  • description - (Optional) A description of what the topic is about, which the contact will see.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • createdTimestamp - A timestamp noting when the contact list was created in ISO 8601 format.
  • lastUpdatedTimestamp - A timestamp noting the last time the contact list was updated in ISO 8601 format.

Import

SESv2 (Simple Email V2) Contact List can be imported using the exampleIdArg, e.g.,

$ terraform import aws_sesv2_contact_list.example example