amazonka-iam-1.4.5: 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.GetUser

Contents

Description

Retrieves information about the specified IAM user, including the user's creation date, path, unique ID, and ARN.

If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID used to sign the request to this API.

Synopsis

Creating a Request

getUser :: GetUser #

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

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

  • guUserName - The name of the user to get information about. This parameter is optional. If it is not included, it defaults to the user making the request. 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: =,.@-

data GetUser #

See: getUser smart constructor.

Instances

Eq GetUser # 

Methods

(==) :: GetUser -> GetUser -> Bool #

(/=) :: GetUser -> GetUser -> Bool #

Data GetUser # 

Methods

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

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

toConstr :: GetUser -> Constr #

dataTypeOf :: GetUser -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetUser # 
Show GetUser # 
Generic GetUser # 

Associated Types

type Rep GetUser :: * -> * #

Methods

from :: GetUser -> Rep GetUser x #

to :: Rep GetUser x -> GetUser #

Hashable GetUser # 

Methods

hashWithSalt :: Int -> GetUser -> Int #

hash :: GetUser -> Int #

NFData GetUser # 

Methods

rnf :: GetUser -> () #

AWSRequest GetUser # 

Associated Types

type Rs GetUser :: * #

ToQuery GetUser # 
ToPath GetUser # 

Methods

toPath :: GetUser -> ByteString #

ToHeaders GetUser # 

Methods

toHeaders :: GetUser -> [Header] #

type Rep GetUser # 
type Rep GetUser = D1 (MetaData "GetUser" "Network.AWS.IAM.GetUser" "amazonka-iam-1.4.5-1ijrgQyRuWgA7Tx0390Dx2" True) (C1 (MetaCons "GetUser'" PrefixI True) (S1 (MetaSel (Just Symbol "_guUserName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))))
type Rs GetUser # 

Request Lenses

guUserName :: Lens' GetUser (Maybe Text) #

The name of the user to get information about. This parameter is optional. If it is not included, it defaults to the user making the request. 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: =,.@-

Destructuring the Response

getUserResponse #

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

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

data GetUserResponse #

Contains the response to a successful GetUser request.

See: getUserResponse smart constructor.

Instances

Eq GetUserResponse # 
Data GetUserResponse # 

Methods

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

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

toConstr :: GetUserResponse -> Constr #

dataTypeOf :: GetUserResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetUserResponse # 
Show GetUserResponse # 
Generic GetUserResponse # 
NFData GetUserResponse # 

Methods

rnf :: GetUserResponse -> () #

type Rep GetUserResponse # 
type Rep GetUserResponse = D1 (MetaData "GetUserResponse" "Network.AWS.IAM.GetUser" "amazonka-iam-1.4.5-1ijrgQyRuWgA7Tx0390Dx2" False) (C1 (MetaCons "GetUserResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gursResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)) (S1 (MetaSel (Just Symbol "_gursUser") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 User))))

Response Lenses

gursResponseStatus :: Lens' GetUserResponse Int #

  • - | The response status code.

gursUser :: Lens' GetUserResponse User #

A structure containing details about the IAM user.