Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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_dkimVerificationStatus :: Lens' GetMailDomainResponse (Maybe DnsRecordVerificationStatus)
- getMailDomainResponse_isDefault :: Lens' GetMailDomainResponse (Maybe Bool)
- getMailDomainResponse_isTestDomain :: Lens' GetMailDomainResponse (Maybe Bool)
- getMailDomainResponse_ownershipVerificationStatus :: Lens' GetMailDomainResponse (Maybe DnsRecordVerificationStatus)
- getMailDomainResponse_records :: Lens' GetMailDomainResponse (Maybe [DnsRecord])
- 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:
GetMailDomain
, getMailDomain_organizationId
- The WorkMail organization for which the domain is retrieved.
GetMailDomain
, getMailDomain_domainName
- The domain from which you want to retrieve details.
Request Lenses
getMailDomain_organizationId :: Lens' GetMailDomain Text Source #
The 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: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:isTestDomain:GetMailDomainResponse'
, getMailDomainResponse_isTestDomain
- Specifies whether the domain is a test domain provided by WorkMail, or a
custom domain.
$sel:ownershipVerificationStatus:GetMailDomainResponse'
, getMailDomainResponse_ownershipVerificationStatus
- Indicates the status of the domain ownership verification.
$sel:records:GetMailDomainResponse'
, getMailDomainResponse_records
- A list of the DNS records that 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:httpStatus:GetMailDomainResponse'
, getMailDomainResponse_httpStatus
- The response's http status code.
Response Lenses
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_isTestDomain :: Lens' GetMailDomainResponse (Maybe Bool) Source #
Specifies whether the domain is a test domain provided by WorkMail, or a custom domain.
getMailDomainResponse_ownershipVerificationStatus :: Lens' GetMailDomainResponse (Maybe DnsRecordVerificationStatus) Source #
Indicates the status of the domain ownership verification.
getMailDomainResponse_records :: Lens' GetMailDomainResponse (Maybe [DnsRecord]) Source #
A list of the DNS records that 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_httpStatus :: Lens' GetMailDomainResponse Int Source #
The response's http status code.