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

Contents

Description

Creates a user who can be used in Amazon WorkMail by calling the RegisterToWorkMail operation.

Synopsis

Creating a Request

createUser Source #

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

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

  • cuOrganizationId - The identifier of the organization for which the user is created.
  • cuName - The name for the user to be created.
  • cuDisplayName - The display name for the user to be created.
  • cuPassword - The password for the user to be created.

data CreateUser Source #

See: createUser smart constructor.

Instances

Eq CreateUser Source # 
Data CreateUser Source # 

Methods

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

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

toConstr :: CreateUser -> Constr #

dataTypeOf :: CreateUser -> DataType #

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

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

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

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

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

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

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

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

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

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

Show CreateUser Source # 
Generic CreateUser Source # 

Associated Types

type Rep CreateUser :: * -> * #

Hashable CreateUser Source # 
ToJSON CreateUser Source # 
NFData CreateUser Source # 

Methods

rnf :: CreateUser -> () #

AWSRequest CreateUser Source # 
ToHeaders CreateUser Source # 

Methods

toHeaders :: CreateUser -> [Header] #

ToPath CreateUser Source # 
ToQuery CreateUser Source # 
type Rep CreateUser Source # 
type Rep CreateUser = D1 * (MetaData "CreateUser" "Network.AWS.WorkMail.CreateUser" "amazonka-workmail-1.6.0-8HAZCS55pFIAg9ZAclEI0R" False) (C1 * (MetaCons "CreateUser'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_cuOrganizationId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_cuName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cuDisplayName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_cuPassword") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Sensitive Text))))))
type Rs CreateUser Source # 

Request Lenses

cuOrganizationId :: Lens' CreateUser Text Source #

The identifier of the organization for which the user is created.

cuName :: Lens' CreateUser Text Source #

The name for the user to be created.

cuDisplayName :: Lens' CreateUser Text Source #

The display name for the user to be created.

cuPassword :: Lens' CreateUser Text Source #

The password for the user to be created.

Destructuring the Response

createUserResponse Source #

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

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

data CreateUserResponse Source #

See: createUserResponse smart constructor.

Instances

Eq CreateUserResponse Source # 
Data CreateUserResponse Source # 

Methods

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

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

toConstr :: CreateUserResponse -> Constr #

dataTypeOf :: CreateUserResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateUserResponse Source # 
Show CreateUserResponse Source # 
Generic CreateUserResponse Source # 
NFData CreateUserResponse Source # 

Methods

rnf :: CreateUserResponse -> () #

type Rep CreateUserResponse Source # 
type Rep CreateUserResponse = D1 * (MetaData "CreateUserResponse" "Network.AWS.WorkMail.CreateUser" "amazonka-workmail-1.6.0-8HAZCS55pFIAg9ZAclEI0R" False) (C1 * (MetaCons "CreateUserResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_cursUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_cursResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

cursUserId :: Lens' CreateUserResponse (Maybe Text) Source #

The information regarding the newly created user.

cursResponseStatus :: Lens' CreateUserResponse Int Source #

  • - | The response status code.