Class 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",
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Ses
Assembly: Pulumi.Aws.dll
Syntax
public class DomainIdentity : CustomResource
Constructors
View SourceDomainIdentity(String, DomainIdentityArgs, CustomResourceOptions)
Create a DomainIdentity resource with the given unique name, arguments, and options.
Declaration
public DomainIdentity(string name, DomainIdentityArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| DomainIdentityArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceArn
The ARN of the domain identity.
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Domain
The domain name to assign to SES
Declaration
public Output<string> Domain { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
VerificationToken
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.
Declaration
public Output<string> VerificationToken { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, DomainIdentityState, CustomResourceOptions)
Get an existing DomainIdentity resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static DomainIdentity Get(string name, Input<string> id, DomainIdentityState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| DomainIdentityState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| DomainIdentity |