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 primary email for a user, group, or resource. The current email is moved into the list of aliases (or swapped between an existing alias and the current primary email), and the email provided in the input is promoted as the primary.
Synopsis
- data UpdatePrimaryEmailAddress = UpdatePrimaryEmailAddress' {}
- newUpdatePrimaryEmailAddress :: Text -> Text -> Text -> UpdatePrimaryEmailAddress
- updatePrimaryEmailAddress_organizationId :: Lens' UpdatePrimaryEmailAddress Text
- updatePrimaryEmailAddress_entityId :: Lens' UpdatePrimaryEmailAddress Text
- updatePrimaryEmailAddress_email :: Lens' UpdatePrimaryEmailAddress Text
- data UpdatePrimaryEmailAddressResponse = UpdatePrimaryEmailAddressResponse' {
- httpStatus :: Int
- newUpdatePrimaryEmailAddressResponse :: Int -> UpdatePrimaryEmailAddressResponse
- updatePrimaryEmailAddressResponse_httpStatus :: Lens' UpdatePrimaryEmailAddressResponse Int
Creating a Request
data UpdatePrimaryEmailAddress Source #
See: newUpdatePrimaryEmailAddress
smart constructor.
Instances
newUpdatePrimaryEmailAddress Source #
:: Text | |
-> Text | |
-> Text | |
-> UpdatePrimaryEmailAddress |
Create a value of UpdatePrimaryEmailAddress
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:UpdatePrimaryEmailAddress'
, updatePrimaryEmailAddress_organizationId
- The organization that contains the user, group, or resource to update.
$sel:entityId:UpdatePrimaryEmailAddress'
, updatePrimaryEmailAddress_entityId
- The user, group, or resource to update.
$sel:email:UpdatePrimaryEmailAddress'
, updatePrimaryEmailAddress_email
- The value of the email to be updated as primary.
Request Lenses
updatePrimaryEmailAddress_organizationId :: Lens' UpdatePrimaryEmailAddress Text Source #
The organization that contains the user, group, or resource to update.
updatePrimaryEmailAddress_entityId :: Lens' UpdatePrimaryEmailAddress Text Source #
The user, group, or resource to update.
updatePrimaryEmailAddress_email :: Lens' UpdatePrimaryEmailAddress Text Source #
The value of the email to be updated as primary.
Destructuring the Response
data UpdatePrimaryEmailAddressResponse Source #
See: newUpdatePrimaryEmailAddressResponse
smart constructor.
UpdatePrimaryEmailAddressResponse' | |
|
Instances
Eq UpdatePrimaryEmailAddressResponse Source # | |
Read UpdatePrimaryEmailAddressResponse Source # | |
Show UpdatePrimaryEmailAddressResponse Source # | |
Generic UpdatePrimaryEmailAddressResponse Source # | |
NFData UpdatePrimaryEmailAddressResponse Source # | |
Defined in Amazonka.WorkMail.UpdatePrimaryEmailAddress rnf :: UpdatePrimaryEmailAddressResponse -> () # | |
type Rep UpdatePrimaryEmailAddressResponse Source # | |
Defined in Amazonka.WorkMail.UpdatePrimaryEmailAddress type Rep UpdatePrimaryEmailAddressResponse = D1 ('MetaData "UpdatePrimaryEmailAddressResponse" "Amazonka.WorkMail.UpdatePrimaryEmailAddress" "libZSservicesZSamazonka-workmailZSamazonka-workmail" 'False) (C1 ('MetaCons "UpdatePrimaryEmailAddressResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newUpdatePrimaryEmailAddressResponse Source #
Create a value of UpdatePrimaryEmailAddressResponse
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:UpdatePrimaryEmailAddressResponse'
, updatePrimaryEmailAddressResponse_httpStatus
- The response's http status code.
Response Lenses
updatePrimaryEmailAddressResponse_httpStatus :: Lens' UpdatePrimaryEmailAddressResponse Int Source #
The response's http status code.