Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Adds a domain to the list of identities for your Amazon SES account in the current AWS Region and attempts to verify it. For more information about verifying domains, see Verifying Email Addresses and Domains in the Amazon SES Developer Guide.
You can execute this operation no more than once per second.
Synopsis
- data VerifyDomainIdentity = VerifyDomainIdentity' {}
- newVerifyDomainIdentity :: Text -> VerifyDomainIdentity
- verifyDomainIdentity_domain :: Lens' VerifyDomainIdentity Text
- data VerifyDomainIdentityResponse = VerifyDomainIdentityResponse' {}
- newVerifyDomainIdentityResponse :: Int -> Text -> VerifyDomainIdentityResponse
- verifyDomainIdentityResponse_httpStatus :: Lens' VerifyDomainIdentityResponse Int
- verifyDomainIdentityResponse_verificationToken :: Lens' VerifyDomainIdentityResponse Text
Creating a Request
data VerifyDomainIdentity Source #
Represents a request to begin Amazon SES domain verification and to generate the TXT records that you must publish to the DNS server of your domain to complete the verification. For information about domain verification, see the Amazon SES Developer Guide.
See: newVerifyDomainIdentity
smart constructor.
Instances
newVerifyDomainIdentity Source #
Create a value of VerifyDomainIdentity
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:domain:VerifyDomainIdentity'
, verifyDomainIdentity_domain
- The domain to be verified.
Request Lenses
verifyDomainIdentity_domain :: Lens' VerifyDomainIdentity Text Source #
The domain to be verified.
Destructuring the Response
data VerifyDomainIdentityResponse Source #
Returns a TXT record that you must publish to the DNS server of your domain to complete domain verification with Amazon SES.
See: newVerifyDomainIdentityResponse
smart constructor.
VerifyDomainIdentityResponse' | |
|
Instances
newVerifyDomainIdentityResponse Source #
:: Int | |
-> Text | |
-> VerifyDomainIdentityResponse |
Create a value of VerifyDomainIdentityResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:VerifyDomainIdentityResponse'
, verifyDomainIdentityResponse_httpStatus
- The response's http status code.
$sel:verificationToken:VerifyDomainIdentityResponse'
, verifyDomainIdentityResponse_verificationToken
- A TXT record that you must place in the DNS settings of the domain to
complete domain verification with Amazon SES.
As Amazon SES searches for the TXT record, the domain's verification status is "Pending". When Amazon SES detects the record, the domain's verification status changes to "Success". If Amazon SES is unable to detect the record within 72 hours, the domain's verification status changes to "Failed." In that case, if you still want to verify the domain, you must restart the verification process from the beginning.
Response Lenses
verifyDomainIdentityResponse_httpStatus :: Lens' VerifyDomainIdentityResponse Int Source #
The response's http status code.
verifyDomainIdentityResponse_verificationToken :: Lens' VerifyDomainIdentityResponse Text Source #
A TXT record that you must place in the DNS settings of the domain to complete domain verification with Amazon SES.
As Amazon SES searches for the TXT record, the domain's verification status is "Pending". When Amazon SES detects the record, the domain's verification status changes to "Success". If Amazon SES is unable to detect the record within 72 hours, the domain's verification status changes to "Failed." In that case, if you still want to verify the domain, you must restart the verification process from the beginning.