Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Updates the primary email for an entity. 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
- updatePrimaryEmailAddress :: Text -> Text -> Text -> UpdatePrimaryEmailAddress
- data UpdatePrimaryEmailAddress
- upeaOrganizationId :: Lens' UpdatePrimaryEmailAddress Text
- upeaEntityId :: Lens' UpdatePrimaryEmailAddress Text
- upeaEmail :: Lens' UpdatePrimaryEmailAddress Text
- updatePrimaryEmailAddressResponse :: Int -> UpdatePrimaryEmailAddressResponse
- data UpdatePrimaryEmailAddressResponse
- upearsResponseStatus :: Lens' UpdatePrimaryEmailAddressResponse Int
Creating a Request
updatePrimaryEmailAddress Source #
Creates a value of UpdatePrimaryEmailAddress
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
upeaOrganizationId
- The organization that contains the entity to update.upeaEntityId
- The entity to update (user, group, or resource).upeaEmail
- The value of the email to be updated as primary.
data UpdatePrimaryEmailAddress Source #
See: updatePrimaryEmailAddress
smart constructor.
Instances
Request Lenses
upeaOrganizationId :: Lens' UpdatePrimaryEmailAddress Text Source #
The organization that contains the entity to update.
upeaEntityId :: Lens' UpdatePrimaryEmailAddress Text Source #
The entity to update (user, group, or resource).
upeaEmail :: Lens' UpdatePrimaryEmailAddress Text Source #
The value of the email to be updated as primary.
Destructuring the Response
updatePrimaryEmailAddressResponse Source #
Creates a value of UpdatePrimaryEmailAddressResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
upearsResponseStatus
- -- | The response status code.
data UpdatePrimaryEmailAddressResponse Source #
See: updatePrimaryEmailAddressResponse
smart constructor.
Instances
Response Lenses
upearsResponseStatus :: Lens' UpdatePrimaryEmailAddressResponse Int Source #
- - | The response status code.