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 |
Removes a domain from Amazon WorkMail, stops email routing to WorkMail, and removes the authorization allowing WorkMail use. SES keeps the domain because other applications may use it. You must first remove any email address used by WorkMail entities before you remove the domain.
Synopsis
- data DeregisterMailDomain = DeregisterMailDomain' {
- organizationId :: Text
- domainName :: Text
- newDeregisterMailDomain :: Text -> Text -> DeregisterMailDomain
- deregisterMailDomain_organizationId :: Lens' DeregisterMailDomain Text
- deregisterMailDomain_domainName :: Lens' DeregisterMailDomain Text
- data DeregisterMailDomainResponse = DeregisterMailDomainResponse' {
- httpStatus :: Int
- newDeregisterMailDomainResponse :: Int -> DeregisterMailDomainResponse
- deregisterMailDomainResponse_httpStatus :: Lens' DeregisterMailDomainResponse Int
Creating a Request
data DeregisterMailDomain Source #
See: newDeregisterMailDomain
smart constructor.
DeregisterMailDomain' | |
|
Instances
newDeregisterMailDomain Source #
:: Text | |
-> Text | |
-> DeregisterMailDomain |
Create a value of DeregisterMailDomain
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:DeregisterMailDomain'
, deregisterMailDomain_organizationId
- The Amazon WorkMail organization for which the domain will be
deregistered.
$sel:domainName:DeregisterMailDomain'
, deregisterMailDomain_domainName
- The domain to deregister in WorkMail and SES.
Request Lenses
deregisterMailDomain_organizationId :: Lens' DeregisterMailDomain Text Source #
The Amazon WorkMail organization for which the domain will be deregistered.
deregisterMailDomain_domainName :: Lens' DeregisterMailDomain Text Source #
The domain to deregister in WorkMail and SES.
Destructuring the Response
data DeregisterMailDomainResponse Source #
See: newDeregisterMailDomainResponse
smart constructor.
DeregisterMailDomainResponse' | |
|
Instances
newDeregisterMailDomainResponse Source #
Create a value of DeregisterMailDomainResponse
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:DeregisterMailDomainResponse'
, deregisterMailDomainResponse_httpStatus
- The response's http status code.
Response Lenses
deregisterMailDomainResponse_httpStatus :: Lens' DeregisterMailDomainResponse Int Source #
The response's http status code.