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.RegisterToWorkMail

Contents

Description

Registers an existing and disabled user, group, or resourceentity for Amazon WorkMail use by associating a mailbox and calendaring capabilities. It performs no change if the entity is enabled and fails if the entity is deleted. This operation results in the accumulation of costs. For more information, see <http:aws.amazon.comworkmailpricing Pricing> . The equivalent console functionality for this operation is Enable/ . Users can either be created by calling the CreateUser API or they can be synchronized from your directory. For more information, see DeregisterFromWorkMail.

Synopsis

Creating a Request

registerToWorkMail Source #

Creates a value of RegisterToWorkMail with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • rtwmOrganizationId - The identifier for the organization under which the Amazon WorkMail entity exists.
  • rtwmEntityId - The identifier for the entity to be updated.
  • rtwmEmail - The email for the entity to be updated.

data RegisterToWorkMail Source #

See: registerToWorkMail smart constructor.

Instances

Eq RegisterToWorkMail Source # 
Data RegisterToWorkMail Source # 

Methods

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

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

toConstr :: RegisterToWorkMail -> Constr #

dataTypeOf :: RegisterToWorkMail -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RegisterToWorkMail Source # 
Show RegisterToWorkMail Source # 
Generic RegisterToWorkMail Source # 
Hashable RegisterToWorkMail Source # 
ToJSON RegisterToWorkMail Source # 
NFData RegisterToWorkMail Source # 

Methods

rnf :: RegisterToWorkMail -> () #

AWSRequest RegisterToWorkMail Source # 
ToHeaders RegisterToWorkMail Source # 
ToPath RegisterToWorkMail Source # 
ToQuery RegisterToWorkMail Source # 
type Rep RegisterToWorkMail Source # 
type Rep RegisterToWorkMail = D1 * (MetaData "RegisterToWorkMail" "Network.AWS.WorkMail.RegisterToWorkMail" "amazonka-workmail-1.6.0-8HAZCS55pFIAg9ZAclEI0R" False) (C1 * (MetaCons "RegisterToWorkMail'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_rtwmOrganizationId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) ((:*:) * (S1 * (MetaSel (Just Symbol "_rtwmEntityId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_rtwmEmail") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs RegisterToWorkMail Source # 

Request Lenses

rtwmOrganizationId :: Lens' RegisterToWorkMail Text Source #

The identifier for the organization under which the Amazon WorkMail entity exists.

rtwmEntityId :: Lens' RegisterToWorkMail Text Source #

The identifier for the entity to be updated.

rtwmEmail :: Lens' RegisterToWorkMail Text Source #

The email for the entity to be updated.

Destructuring the Response

registerToWorkMailResponse Source #

Creates a value of RegisterToWorkMailResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data RegisterToWorkMailResponse Source #

See: registerToWorkMailResponse smart constructor.

Instances

Eq RegisterToWorkMailResponse Source # 
Data RegisterToWorkMailResponse Source # 

Methods

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

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

toConstr :: RegisterToWorkMailResponse -> Constr #

dataTypeOf :: RegisterToWorkMailResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Response Lenses