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 |
Registers a new domain in WorkMail and SES, and configures it for use by WorkMail. Emails received by SES for this domain are routed to the specified WorkMail organization, and WorkMail has permanent permission to use the specified domain for sending your users' emails.
Synopsis
- data RegisterMailDomain = RegisterMailDomain' {
- clientToken :: Maybe Text
- organizationId :: Text
- domainName :: Text
- newRegisterMailDomain :: Text -> Text -> RegisterMailDomain
- registerMailDomain_clientToken :: Lens' RegisterMailDomain (Maybe Text)
- registerMailDomain_organizationId :: Lens' RegisterMailDomain Text
- registerMailDomain_domainName :: Lens' RegisterMailDomain Text
- data RegisterMailDomainResponse = RegisterMailDomainResponse' {
- httpStatus :: Int
- newRegisterMailDomainResponse :: Int -> RegisterMailDomainResponse
- registerMailDomainResponse_httpStatus :: Lens' RegisterMailDomainResponse Int
Creating a Request
data RegisterMailDomain Source #
See: newRegisterMailDomain
smart constructor.
RegisterMailDomain' | |
|
Instances
newRegisterMailDomain Source #
Create a value of RegisterMailDomain
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:clientToken:RegisterMailDomain'
, registerMailDomain_clientToken
- Idempotency token used when retrying requests.
RegisterMailDomain
, registerMailDomain_organizationId
- The WorkMail organization under which you're creating the domain.
RegisterMailDomain
, registerMailDomain_domainName
- The name of the mail domain to create in WorkMail and SES.
Request Lenses
registerMailDomain_clientToken :: Lens' RegisterMailDomain (Maybe Text) Source #
Idempotency token used when retrying requests.
registerMailDomain_organizationId :: Lens' RegisterMailDomain Text Source #
The WorkMail organization under which you're creating the domain.
registerMailDomain_domainName :: Lens' RegisterMailDomain Text Source #
The name of the mail domain to create in WorkMail and SES.
Destructuring the Response
data RegisterMailDomainResponse Source #
See: newRegisterMailDomainResponse
smart constructor.
RegisterMailDomainResponse' | |
|
Instances
newRegisterMailDomainResponse Source #
Create a value of RegisterMailDomainResponse
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:RegisterMailDomainResponse'
, registerMailDomainResponse_httpStatus
- The response's http status code.
Response Lenses
registerMailDomainResponse_httpStatus :: Lens' RegisterMailDomainResponse Int Source #
The response's http status code.