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 |
Updates the default mail domain for an organization. The default mail domain is used by the WorkMail AWS Console to suggest an email address when enabling a mail user. You can only have one default domain.
Synopsis
- data UpdateDefaultMailDomain = UpdateDefaultMailDomain' {
- organizationId :: Text
- domainName :: Text
- newUpdateDefaultMailDomain :: Text -> Text -> UpdateDefaultMailDomain
- updateDefaultMailDomain_organizationId :: Lens' UpdateDefaultMailDomain Text
- updateDefaultMailDomain_domainName :: Lens' UpdateDefaultMailDomain Text
- data UpdateDefaultMailDomainResponse = UpdateDefaultMailDomainResponse' {
- httpStatus :: Int
- newUpdateDefaultMailDomainResponse :: Int -> UpdateDefaultMailDomainResponse
- updateDefaultMailDomainResponse_httpStatus :: Lens' UpdateDefaultMailDomainResponse Int
Creating a Request
data UpdateDefaultMailDomain Source #
See: newUpdateDefaultMailDomain
smart constructor.
UpdateDefaultMailDomain' | |
|
Instances
newUpdateDefaultMailDomain Source #
:: Text | |
-> Text | |
-> UpdateDefaultMailDomain |
Create a value of UpdateDefaultMailDomain
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:UpdateDefaultMailDomain'
, updateDefaultMailDomain_organizationId
- The Amazon WorkMail organization for which to list domains.
$sel:domainName:UpdateDefaultMailDomain'
, updateDefaultMailDomain_domainName
- The domain name that will become the default domain.
Request Lenses
updateDefaultMailDomain_organizationId :: Lens' UpdateDefaultMailDomain Text Source #
The Amazon WorkMail organization for which to list domains.
updateDefaultMailDomain_domainName :: Lens' UpdateDefaultMailDomain Text Source #
The domain name that will become the default domain.
Destructuring the Response
data UpdateDefaultMailDomainResponse Source #
See: newUpdateDefaultMailDomainResponse
smart constructor.
UpdateDefaultMailDomainResponse' | |
|
Instances
Eq UpdateDefaultMailDomainResponse Source # | |
Read UpdateDefaultMailDomainResponse Source # | |
Show UpdateDefaultMailDomainResponse Source # | |
Defined in Amazonka.WorkMail.UpdateDefaultMailDomain | |
Generic UpdateDefaultMailDomainResponse Source # | |
NFData UpdateDefaultMailDomainResponse Source # | |
Defined in Amazonka.WorkMail.UpdateDefaultMailDomain rnf :: UpdateDefaultMailDomainResponse -> () # | |
type Rep UpdateDefaultMailDomainResponse Source # | |
Defined in Amazonka.WorkMail.UpdateDefaultMailDomain type Rep UpdateDefaultMailDomainResponse = D1 ('MetaData "UpdateDefaultMailDomainResponse" "Amazonka.WorkMail.UpdateDefaultMailDomain" "libZSservicesZSamazonka-workmailZSamazonka-workmail" 'False) (C1 ('MetaCons "UpdateDefaultMailDomainResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newUpdateDefaultMailDomainResponse Source #
Create a value of UpdateDefaultMailDomainResponse
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:UpdateDefaultMailDomainResponse'
, updateDefaultMailDomainResponse_httpStatus
- The response's http status code.
Response Lenses
updateDefaultMailDomainResponse_httpStatus :: Lens' UpdateDefaultMailDomainResponse Int Source #
The response's http status code.