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 Source #

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 Source #

See: getUser smart constructor.

Instances

Eq GetUser Source # 

Methods

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

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

Data GetUser Source # 

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 Source # 
Show GetUser Source # 
Generic GetUser Source # 

Associated Types

type Rep GetUser :: * -> * #

Methods

from :: GetUser -> Rep GetUser x #

to :: Rep GetUser x -> GetUser #

Hashable GetUser Source # 

Methods

hashWithSalt :: Int -> GetUser -> Int #

hash :: GetUser -> Int #

NFData GetUser Source # 

Methods

rnf :: GetUser -> () #

AWSRequest GetUser Source # 

Associated Types

type Rs GetUser :: * #

ToPath GetUser Source # 

Methods

toPath :: GetUser -> ByteString #

ToHeaders GetUser Source # 

Methods

toHeaders :: GetUser -> [Header] #

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

Request Lenses

guUserName :: Lens' GetUser (Maybe Text) Source #

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 Source #

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 Source #

Contains the response to a successful GetUser request.

See: getUserResponse smart constructor.

Instances

Eq GetUserResponse Source # 
Data GetUserResponse Source # 

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 Source # 
Show GetUserResponse Source # 
Generic GetUserResponse Source # 
NFData GetUserResponse Source # 

Methods

rnf :: GetUserResponse -> () #

type Rep GetUserResponse Source # 
type Rep GetUserResponse = D1 (MetaData "GetUserResponse" "Network.AWS.IAM.GetUser" "amazonka-iam-1.4.5-tAuuyG7nyKEp3j6LBO0rr" 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 Source #

  • - | The response status code.

gursUser :: Lens' GetUserResponse User Source #

A structure containing details about the IAM user.