github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/aws/r/ses_domain_identity.html.markdown (about)

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: ses_domain_identity"
     4  sidebar_current: "docs-aws-resource-ses-domain-identity"
     5  description: |-
     6    Provides an SES domain identity resource
     7  ---
     8  
     9  # aws\_ses\_domain_identity
    10  
    11  Provides an SES domain identity resource
    12  
    13  ## Argument Reference
    14  
    15  The following arguments are supported:
    16  
    17  * `domain` - (Required) The domain name to assign to SES
    18   
    19  ## Attributes Reference
    20   
    21  The following attributes are exported:
    22  
    23  * `verification_token` - A code which when added to the domain as a TXT record
    24    will signal to SES that the owner of the domain has authorised SES to act on
    25    their behalf. The domain identity will be in state "verification pending"
    26    until this is done. See below for an example of how this might be achieved
    27    when the domain is hosted in Route 53 and managed by Terraform.  Find out
    28    more about verifying domains in Amazon SES in the [AWS SES
    29    docs](http://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-domains.html).
    30  
    31  ## Example Usage
    32  
    33  ```hcl
    34  resource "aws_ses_domain_identity" "example" {
    35    domain = "example.com"
    36  }
    37  
    38  resource "aws_route53_record" "example_amazonses_verification_record" {
    39    zone_id = "ABCDEFGHIJ123"
    40    name    = "_amazonses.example.com"
    41    type    = "TXT"
    42    ttl     = "600"
    43    records = ["${aws_ses_domain_identity.example.verification_token}"]
    44  } 
    45  ```
    46