DomainIdentityVerification
Represents a successful verification of an SES domain identity.
Most commonly, this resource is used together with aws.route53.Record and
aws.ses.DomainIdentity to request an SES domain identity,
deploy the required DNS verification records, and wait for verification to complete.
WARNING: This resource implements a part of the verification workflow. It does not represent a real-world entity in AWS, therefore changing or deleting this resource on its own has no immediate effect.
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 = example.Id.Apply(id => $"_amazonses.{id}"),
Records =
{
example.VerificationToken,
},
Ttl = 600,
Type = "TXT",
ZoneId = aws_route53_zone.Example.Zone_id,
});
var exampleVerification = new Aws.Ses.DomainIdentityVerification("exampleVerification", new Aws.Ses.DomainIdentityVerificationArgs
{
Domain = example.Id,
}, new CustomResourceOptions
{
DependsOn =
{
"aws_route53_record.example_amazonses_verification_record",
},
});
}
}
package main
import (
"fmt"
"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: example.ID().ApplyT(func(id string) (string, error) {
return fmt.Sprintf("%v%v", "_amazonses.", id), nil
}).(pulumi.StringOutput),
Records: pulumi.StringArray{
example.VerificationToken,
},
Ttl: pulumi.Int(600),
Type: pulumi.String("TXT"),
ZoneId: pulumi.String(aws_route53_zone.Example.Zone_id),
})
if err != nil {
return err
}
_, err = ses.NewDomainIdentityVerification(ctx, "exampleVerification", &ses.DomainIdentityVerificationArgs{
Domain: example.ID(),
}, pulumi.DependsOn([]pulumi.Resource{
"aws_route53_record.example_amazonses_verification_record",
}))
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=example.id.apply(lambda id: f"_amazonses.{id}"),
records=[example.verification_token],
ttl="600",
type="TXT",
zone_id=aws_route53_zone["example"]["zone_id"])
example_verification = aws.ses.DomainIdentityVerification("exampleVerification", domain=example.id,
opts=ResourceOptions(depends_on=["aws_route53_record.example_amazonses_verification_record"]))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: pulumi.interpolate`_amazonses.${example.id}`,
records: [example.verificationToken],
ttl: 600,
type: "TXT",
zoneId: aws_route53_zone_example.zoneId,
});
const exampleVerification = new aws.ses.DomainIdentityVerification("example_verification", {
domain: example.id,
}, { dependsOn: [exampleAmazonsesVerificationRecord] });Create a DomainIdentityVerification Resource
new DomainIdentityVerification(name: string, args: DomainIdentityVerificationArgs, opts?: CustomResourceOptions);def DomainIdentityVerification(resource_name, opts=None, domain=None, __props__=None);func NewDomainIdentityVerification(ctx *Context, name string, args DomainIdentityVerificationArgs, opts ...ResourceOption) (*DomainIdentityVerification, error)public DomainIdentityVerification(string name, DomainIdentityVerificationArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args DomainIdentityVerificationArgs
- 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 DomainIdentityVerificationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DomainIdentityVerificationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
DomainIdentityVerification Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The DomainIdentityVerification resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the DomainIdentityVerification resource produces the following output properties:
Look up an Existing DomainIdentityVerification Resource
Get an existing DomainIdentityVerification 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?: DomainIdentityVerificationState, opts?: CustomResourceOptions): DomainIdentityVerificationstatic get(resource_name, id, opts=None, arn=None, domain=None, __props__=None);func GetDomainIdentityVerification(ctx *Context, name string, id IDInput, state *DomainIdentityVerificationState, opts ...ResourceOption) (*DomainIdentityVerification, error)public static DomainIdentityVerification Get(string name, Input<string> id, DomainIdentityVerificationState? 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:
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.