DomainIdentity

Provides an SES domain identity resource

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new Aws.Ses.DomainIdentity("example", new Aws.Ses.DomainIdentityArgs
        {
            Domain = "example.com",
        });
        var exampleAmazonsesVerificationRecord = new Aws.Route53.Record("exampleAmazonsesVerificationRecord", new Aws.Route53.RecordArgs
        {
            Name = "_amazonses.example.com",
            Records = 
            {
                example.VerificationToken,
            },
            Ttl = 600,
            Type = "TXT",
            ZoneId = "ABCDEFGHIJ123",
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/route53"
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/ses"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        example, err := ses.NewDomainIdentity(ctx, "example", &ses.DomainIdentityArgs{
            Domain: pulumi.String("example.com"),
        })
        if err != nil {
            return err
        }
        _, err = route53.NewRecord(ctx, "exampleAmazonsesVerificationRecord", &route53.RecordArgs{
            Name: pulumi.String("_amazonses.example.com"),
            Records: pulumi.StringArray{
                example.VerificationToken,
            },
            Ttl:    pulumi.Int(600),
            Type:   pulumi.String("TXT"),
            ZoneId: pulumi.String("ABCDEFGHIJ123"),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

example = aws.ses.DomainIdentity("example", domain="example.com")
example_amazonses_verification_record = aws.route53.Record("exampleAmazonsesVerificationRecord",
    name="_amazonses.example.com",
    records=[example.verification_token],
    ttl="600",
    type="TXT",
    zone_id="ABCDEFGHIJ123")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.ses.DomainIdentity("example", {
    domain: "example.com",
});
const exampleAmazonsesVerificationRecord = new aws.route53.Record("example_amazonses_verification_record", {
    name: "_amazonses.example.com",
    records: [example.verificationToken],
    ttl: 600,
    type: "TXT",
    zoneId: "ABCDEFGHIJ123",
});

Create a DomainIdentity Resource

def DomainIdentity(resource_name, opts=None, domain=None, __props__=None);
name string
The unique name of the resource.
args DomainIdentityArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args DomainIdentityArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args DomainIdentityArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

DomainIdentity Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The DomainIdentity resource accepts the following input properties:

Domain string

The domain name to assign to SES

Domain string

The domain name to assign to SES

domain string

The domain name to assign to SES

domain str

The domain name to assign to SES

Outputs

All input properties are implicitly available as output properties. Additionally, the DomainIdentity resource produces the following output properties:

Arn string

The ARN of the domain identity.

Id string
The provider-assigned unique ID for this managed resource.
VerificationToken string

A code which when added to the domain as a TXT record will signal to SES that the owner of the domain has authorised SES to act on their behalf. The domain identity will be in state “verification pending” until this is done. See below for an example of how this might be achieved when the domain is hosted in Route 53 and managed by this provider. Find out more about verifying domains in Amazon SES in the AWS SES docs.

Arn string

The ARN of the domain identity.

Id string
The provider-assigned unique ID for this managed resource.
VerificationToken string

A code which when added to the domain as a TXT record will signal to SES that the owner of the domain has authorised SES to act on their behalf. The domain identity will be in state “verification pending” until this is done. See below for an example of how this might be achieved when the domain is hosted in Route 53 and managed by this provider. Find out more about verifying domains in Amazon SES in the AWS SES docs.

arn string

The ARN of the domain identity.

id string
The provider-assigned unique ID for this managed resource.
verificationToken string

A code which when added to the domain as a TXT record will signal to SES that the owner of the domain has authorised SES to act on their behalf. The domain identity will be in state “verification pending” until this is done. See below for an example of how this might be achieved when the domain is hosted in Route 53 and managed by this provider. Find out more about verifying domains in Amazon SES in the AWS SES docs.

arn str

The ARN of the domain identity.

id str
The provider-assigned unique ID for this managed resource.
verification_token str

A code which when added to the domain as a TXT record will signal to SES that the owner of the domain has authorised SES to act on their behalf. The domain identity will be in state “verification pending” until this is done. See below for an example of how this might be achieved when the domain is hosted in Route 53 and managed by this provider. Find out more about verifying domains in Amazon SES in the AWS SES docs.

Look up an Existing DomainIdentity Resource

Get an existing DomainIdentity resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: DomainIdentityState, opts?: CustomResourceOptions): DomainIdentity
static get(resource_name, id, opts=None, arn=None, domain=None, verification_token=None, __props__=None);
func GetDomainIdentity(ctx *Context, name string, id IDInput, state *DomainIdentityState, opts ...ResourceOption) (*DomainIdentity, error)
public static DomainIdentity Get(string name, Input<string> id, DomainIdentityState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

Arn string

The ARN of the domain identity.

Domain string

The domain name to assign to SES

VerificationToken string

A code which when added to the domain as a TXT record will signal to SES that the owner of the domain has authorised SES to act on their behalf. The domain identity will be in state “verification pending” until this is done. See below for an example of how this might be achieved when the domain is hosted in Route 53 and managed by this provider. Find out more about verifying domains in Amazon SES in the AWS SES docs.

Arn string

The ARN of the domain identity.

Domain string

The domain name to assign to SES

VerificationToken string

A code which when added to the domain as a TXT record will signal to SES that the owner of the domain has authorised SES to act on their behalf. The domain identity will be in state “verification pending” until this is done. See below for an example of how this might be achieved when the domain is hosted in Route 53 and managed by this provider. Find out more about verifying domains in Amazon SES in the AWS SES docs.

arn string

The ARN of the domain identity.

domain string

The domain name to assign to SES

verificationToken string

A code which when added to the domain as a TXT record will signal to SES that the owner of the domain has authorised SES to act on their behalf. The domain identity will be in state “verification pending” until this is done. See below for an example of how this might be achieved when the domain is hosted in Route 53 and managed by this provider. Find out more about verifying domains in Amazon SES in the AWS SES docs.

arn str

The ARN of the domain identity.

domain str

The domain name to assign to SES

verification_token str

A code which when added to the domain as a TXT record will signal to SES that the owner of the domain has authorised SES to act on their behalf. The domain identity will be in state “verification pending” until this is done. See below for an example of how this might be achieved when the domain is hosted in Route 53 and managed by this provider. Find out more about verifying domains in Amazon SES in the AWS SES docs.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.