amazonka-iam-1.4.4: Amazon Identity and Access Management SDK.

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

Network.AWS.IAM.CreateUser

Contents

Description

Creates a new IAM user for your AWS account.

For information about limitations on the number of IAM users you can create, see Limitations on IAM Entities in the IAM User Guide.

Synopsis

Creating a Request

createUser Source #

Arguments

:: Text

cuUserName

-> CreateUser 

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:

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 #

Read CreateUser Source # 
Show CreateUser Source # 
Generic CreateUser Source # 

Associated Types

type Rep CreateUser :: * -> * #

Hashable CreateUser Source # 
NFData CreateUser Source # 

Methods

rnf :: CreateUser -> () #

AWSRequest CreateUser Source # 
ToPath CreateUser Source # 
ToHeaders CreateUser Source # 

Methods

toHeaders :: CreateUser -> [Header] #

ToQuery CreateUser Source # 
type Rep CreateUser Source # 
type Rep CreateUser = D1 (MetaData "CreateUser" "Network.AWS.IAM.CreateUser" "amazonka-iam-1.4.4-BicPZt3TaHh2CoAkQqkWBu" False) (C1 (MetaCons "CreateUser'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cuPath") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_cuUserName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs CreateUser Source # 

Request Lenses

cuPath :: Lens' CreateUser (Maybe Text) Source #

The path for the user name. For more information about paths, see IAM Identifiers in the IAM User Guide.

This parameter is optional. If it is not included, it defaults to a slash (/).

The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\u0021) thru the DEL character (\u007F), including most punctuation characters, digits, and upper and lowercased letters.

cuUserName :: Lens' CreateUser Text Source #

The name of the user to create.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.'-. User names are not distinguished by case. For example, you cannot create users named both "TESTUSER" and "testuser".

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 #

Contains the response to a successful CreateUser request.

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.IAM.CreateUser" "amazonka-iam-1.4.4-BicPZt3TaHh2CoAkQqkWBu" False) (C1 (MetaCons "CreateUserResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cursUser") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe User))) (S1 (MetaSel (Just Symbol "_cursResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

cursUser :: Lens' CreateUserResponse (Maybe User) Source #

A structure with details about the new IAM user.