amazonka-workmail-1.6.0: Amazon WorkMail SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.WorkMail.UpdatePrimaryEmailAddress

Contents

Description

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

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

Eq UpdatePrimaryEmailAddress Source # 
Data UpdatePrimaryEmailAddress Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UpdatePrimaryEmailAddress -> c UpdatePrimaryEmailAddress #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UpdatePrimaryEmailAddress #

toConstr :: UpdatePrimaryEmailAddress -> Constr #

dataTypeOf :: UpdatePrimaryEmailAddress -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c UpdatePrimaryEmailAddress) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UpdatePrimaryEmailAddress) #

gmapT :: (forall b. Data b => b -> b) -> UpdatePrimaryEmailAddress -> UpdatePrimaryEmailAddress #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UpdatePrimaryEmailAddress -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UpdatePrimaryEmailAddress -> r #

gmapQ :: (forall d. Data d => d -> u) -> UpdatePrimaryEmailAddress -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UpdatePrimaryEmailAddress -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UpdatePrimaryEmailAddress -> m UpdatePrimaryEmailAddress #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdatePrimaryEmailAddress -> m UpdatePrimaryEmailAddress #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdatePrimaryEmailAddress -> m UpdatePrimaryEmailAddress #

Read UpdatePrimaryEmailAddress Source # 
Show UpdatePrimaryEmailAddress Source # 
Generic UpdatePrimaryEmailAddress Source # 
Hashable UpdatePrimaryEmailAddress Source # 
ToJSON UpdatePrimaryEmailAddress Source # 
NFData UpdatePrimaryEmailAddress Source # 
AWSRequest UpdatePrimaryEmailAddress Source # 
ToHeaders UpdatePrimaryEmailAddress Source # 
ToPath UpdatePrimaryEmailAddress Source # 
ToQuery UpdatePrimaryEmailAddress Source # 
type Rep UpdatePrimaryEmailAddress Source # 
type Rep UpdatePrimaryEmailAddress = D1 * (MetaData "UpdatePrimaryEmailAddress" "Network.AWS.WorkMail.UpdatePrimaryEmailAddress" "amazonka-workmail-1.6.0-8HAZCS55pFIAg9ZAclEI0R" False) (C1 * (MetaCons "UpdatePrimaryEmailAddress'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_upeaOrganizationId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) ((:*:) * (S1 * (MetaSel (Just Symbol "_upeaEntityId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_upeaEmail") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs UpdatePrimaryEmailAddress Source # 

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:

data UpdatePrimaryEmailAddressResponse Source #

See: updatePrimaryEmailAddressResponse smart constructor.

Instances

Eq UpdatePrimaryEmailAddressResponse Source # 
Data UpdatePrimaryEmailAddressResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UpdatePrimaryEmailAddressResponse -> c UpdatePrimaryEmailAddressResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UpdatePrimaryEmailAddressResponse #

toConstr :: UpdatePrimaryEmailAddressResponse -> Constr #

dataTypeOf :: UpdatePrimaryEmailAddressResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c UpdatePrimaryEmailAddressResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UpdatePrimaryEmailAddressResponse) #

gmapT :: (forall b. Data b => b -> b) -> UpdatePrimaryEmailAddressResponse -> UpdatePrimaryEmailAddressResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UpdatePrimaryEmailAddressResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UpdatePrimaryEmailAddressResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> UpdatePrimaryEmailAddressResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UpdatePrimaryEmailAddressResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UpdatePrimaryEmailAddressResponse -> m UpdatePrimaryEmailAddressResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdatePrimaryEmailAddressResponse -> m UpdatePrimaryEmailAddressResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdatePrimaryEmailAddressResponse -> m UpdatePrimaryEmailAddressResponse #

Read UpdatePrimaryEmailAddressResponse Source # 
Show UpdatePrimaryEmailAddressResponse Source # 
Generic UpdatePrimaryEmailAddressResponse Source # 
NFData UpdatePrimaryEmailAddressResponse Source # 
type Rep UpdatePrimaryEmailAddressResponse Source # 
type Rep UpdatePrimaryEmailAddressResponse = D1 * (MetaData "UpdatePrimaryEmailAddressResponse" "Network.AWS.WorkMail.UpdatePrimaryEmailAddress" "amazonka-workmail-1.6.0-8HAZCS55pFIAg9ZAclEI0R" True) (C1 * (MetaCons "UpdatePrimaryEmailAddressResponse'" PrefixI True) (S1 * (MetaSel (Just Symbol "_upearsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int)))

Response Lenses