ContactListArgs

data class ContactListArgs(val contactListName: Output<String>? = null, val description: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val topics: Output<List<ContactListTopicArgs>>? = null) : ConvertibleToJava<ContactListArgs>

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

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.sesv2.ContactList;
import com.pulumi.aws.sesv2.ContactListArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ContactList("example", ContactListArgs.builder()
.contactListName("example")
.build());
}
}

Extended Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.sesv2.ContactList;
import com.pulumi.aws.sesv2.ContactListArgs;
import com.pulumi.aws.sesv2.inputs.ContactListTopicArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ContactList("example", ContactListArgs.builder()
.contactListName("example")
.description("description")
.topics(ContactListTopicArgs.builder()
.defaultSubscriptionStatus("OPT_IN")
.description("topic description")
.displayName("Example Topic")
.topicName("example-topic")
.build())
.build());
}
}

Import

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

$ pulumi import aws:sesv2/contactList:ContactList example example

Constructors

Link copied to clipboard
constructor(contactListName: Output<String>? = null, description: Output<String>? = null, tags: Output<Map<String, String>>? = null, topics: Output<List<ContactListTopicArgs>>? = null)

Properties

Link copied to clipboard
val contactListName: Output<String>? = null

The name of the contact list. The following arguments are optional:

Link copied to clipboard
val description: Output<String>? = null

A description of what the contact list is about.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

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.

Link copied to clipboard
val topics: Output<List<ContactListTopicArgs>>? = null

Configuration block(s) with topic for the contact list. Detailed below.

Functions

Link copied to clipboard
open override fun toJava(): ContactListArgs