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 |
Gets details for a mail domain, including domain records required to configure your domain with recommended security.
Synopsis
- data GetMailDomain = GetMailDomain' {
- organizationId :: Text
- domainName :: Text
- newGetMailDomain :: Text -> Text -> GetMailDomain
- getMailDomain_organizationId :: Lens' GetMailDomain Text
- getMailDomain_domainName :: Lens' GetMailDomain Text
- data GetMailDomainResponse = GetMailDomainResponse' {}
- newGetMailDomainResponse :: Int -> GetMailDomainResponse
- getMailDomainResponse_isTestDomain :: Lens' GetMailDomainResponse (Maybe Bool)
- getMailDomainResponse_records :: Lens' GetMailDomainResponse (Maybe [DnsRecord])
- getMailDomainResponse_ownershipVerificationStatus :: Lens' GetMailDomainResponse (Maybe DnsRecordVerificationStatus)
- getMailDomainResponse_dkimVerificationStatus :: Lens' GetMailDomainResponse (Maybe DnsRecordVerificationStatus)
- getMailDomainResponse_isDefault :: Lens' GetMailDomainResponse (Maybe Bool)
- getMailDomainResponse_httpStatus :: Lens' GetMailDomainResponse Int
Creating a Request
data GetMailDomain Source #
See: newGetMailDomain
smart constructor.
GetMailDomain' | |
|
Instances
Create a value of GetMailDomain
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:organizationId:GetMailDomain'
, getMailDomain_organizationId
- The Amazon WorkMail organization for which the domain is retrieved.
$sel:domainName:GetMailDomain'
, getMailDomain_domainName
- The domain from which you want to retrieve details.
Request Lenses
getMailDomain_organizationId :: Lens' GetMailDomain Text Source #
The Amazon WorkMail organization for which the domain is retrieved.
getMailDomain_domainName :: Lens' GetMailDomain Text Source #
The domain from which you want to retrieve details.
Destructuring the Response
data GetMailDomainResponse Source #
See: newGetMailDomainResponse
smart constructor.
GetMailDomainResponse' | |
|
Instances
newGetMailDomainResponse Source #
Create a value of GetMailDomainResponse
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:isTestDomain:GetMailDomainResponse'
, getMailDomainResponse_isTestDomain
- Specifies whether the domain is a test domain provided by WorkMail, or a
custom domain.
$sel:records:GetMailDomainResponse'
, getMailDomainResponse_records
- A list of the DNS records that Amazon WorkMail recommends adding in your
DNS provider for the best user experience. The records configure your
domain with DMARC, SPF, DKIM, and direct incoming email traffic to SES.
See admin guide for more details.
$sel:ownershipVerificationStatus:GetMailDomainResponse'
, getMailDomainResponse_ownershipVerificationStatus
- Indicates the status of the domain ownership verification.
$sel:dkimVerificationStatus:GetMailDomainResponse'
, getMailDomainResponse_dkimVerificationStatus
- Indicates the status of a DKIM verification.
$sel:isDefault:GetMailDomainResponse'
, getMailDomainResponse_isDefault
- Specifies whether the domain is the default domain for your
organization.
$sel:httpStatus:GetMailDomainResponse'
, getMailDomainResponse_httpStatus
- The response's http status code.
Response Lenses
getMailDomainResponse_isTestDomain :: Lens' GetMailDomainResponse (Maybe Bool) Source #
Specifies whether the domain is a test domain provided by WorkMail, or a custom domain.
getMailDomainResponse_records :: Lens' GetMailDomainResponse (Maybe [DnsRecord]) Source #
A list of the DNS records that Amazon WorkMail recommends adding in your DNS provider for the best user experience. The records configure your domain with DMARC, SPF, DKIM, and direct incoming email traffic to SES. See admin guide for more details.
getMailDomainResponse_ownershipVerificationStatus :: Lens' GetMailDomainResponse (Maybe DnsRecordVerificationStatus) Source #
Indicates the status of the domain ownership verification.
getMailDomainResponse_dkimVerificationStatus :: Lens' GetMailDomainResponse (Maybe DnsRecordVerificationStatus) Source #
Indicates the status of a DKIM verification.
getMailDomainResponse_isDefault :: Lens' GetMailDomainResponse (Maybe Bool) Source #
Specifies whether the domain is the default domain for your organization.
getMailDomainResponse_httpStatus :: Lens' GetMailDomainResponse Int Source #
The response's http status code.