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 |
Amazonka.WorkMail.UpdateDefaultMailDomain
Description
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.
Constructors
UpdateDefaultMailDomain' | |
Fields
|
Instances
newUpdateDefaultMailDomain Source #
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:
UpdateDefaultMailDomain
, updateDefaultMailDomain_organizationId
- The WorkMail organization for which to list domains.
UpdateDefaultMailDomain
, updateDefaultMailDomain_domainName
- The domain name that will become the default domain.
Request Lenses
updateDefaultMailDomain_organizationId :: Lens' UpdateDefaultMailDomain Text Source #
The 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.
Constructors
UpdateDefaultMailDomainResponse' | |
Fields
|
Instances
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.