Resource: aws_sesv2_contact_list

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

Example Usage

Basic Usage

resource "aws_sesv2_contact_list" "example" {
  contact_list_name = "example"
}

Extended Usage

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"
  }
}

Argument Reference

The following arguments are required:

The following arguments are optional:

topic

The following arguments are required:

The following arguments are optional:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

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