Contact List
Resource for managing an AWS SESv2 (Simple Email V2) Contact List.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.sesv2.ContactList("example", {contactListName: "example"});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
example = aws.sesv2.ContactList("example", contact_list_name="example")
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.SesV2.ContactList("example", new()
{
ContactListName = "example",
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/sesv2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sesv2.NewContactList(ctx, "example", &sesv2.ContactListArgs{
ContactListName: pulumi.String("example"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
resources:
example:
type: aws:sesv2:ContactList
properties:
contactListName: example
Content copied to clipboard
Extended Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.sesv2.ContactList("example", {
contactListName: "example",
description: "description",
topics: [{
defaultSubscriptionStatus: "OPT_IN",
description: "topic description",
displayName: "Example Topic",
topicName: "example-topic",
}],
});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
example = aws.sesv2.ContactList("example",
contact_list_name="example",
description="description",
topics=[{
"default_subscription_status": "OPT_IN",
"description": "topic description",
"display_name": "Example Topic",
"topic_name": "example-topic",
}])
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.SesV2.ContactList("example", new()
{
ContactListName = "example",
Description = "description",
Topics = new[]
{
new Aws.SesV2.Inputs.ContactListTopicArgs
{
DefaultSubscriptionStatus = "OPT_IN",
Description = "topic description",
DisplayName = "Example Topic",
TopicName = "example-topic",
},
},
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/sesv2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sesv2.NewContactList(ctx, "example", &sesv2.ContactListArgs{
ContactListName: pulumi.String("example"),
Description: pulumi.String("description"),
Topics: sesv2.ContactListTopicArray{
&sesv2.ContactListTopicArgs{
DefaultSubscriptionStatus: pulumi.String("OPT_IN"),
Description: pulumi.String("topic description"),
DisplayName: pulumi.String("Example Topic"),
TopicName: pulumi.String("example-topic"),
},
},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
resources:
example:
type: aws:sesv2:ContactList
properties:
contactListName: example
description: description
topics:
- defaultSubscriptionStatus: OPT_IN
description: topic description
displayName: Example Topic
topicName: example-topic
Content copied to clipboard
Import
Using pulumi import
, import SESv2 (Simple Email V2) Contact List using the id
. For example:
$ pulumi import aws:sesv2/contactList:ContactList example example
Content copied to clipboard
Properties
Link copied to clipboard
Name of the contact list. The following arguments are optional:
Link copied to clipboard
Timestamp noting when the contact list was created in ISO 8601 format.
Link copied to clipboard
Description of what the contact list is about.
Link copied to clipboard
Timestamp noting the last time the contact list was updated in ISO 8601 format.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Configuration block(s) with topic for the contact list. Detailed below.