amazonka-iam-1.6.1: Amazon Identity and Access Management 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.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. This parameter allows (per its regex pattern ) 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 # 
Instance details

Defined in Network.AWS.IAM.GetUser

Methods

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

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

Data GetUser # 
Instance details

Defined in Network.AWS.IAM.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 # 
Instance details

Defined in Network.AWS.IAM.GetUser

Show GetUser # 
Instance details

Defined in Network.AWS.IAM.GetUser

Generic GetUser # 
Instance details

Defined in Network.AWS.IAM.GetUser

Associated Types

type Rep GetUser :: Type -> Type #

Methods

from :: GetUser -> Rep GetUser x #

to :: Rep GetUser x -> GetUser #

Hashable GetUser # 
Instance details

Defined in Network.AWS.IAM.GetUser

Methods

hashWithSalt :: Int -> GetUser -> Int #

hash :: GetUser -> Int #

AWSRequest GetUser # 
Instance details

Defined in Network.AWS.IAM.GetUser

Associated Types

type Rs GetUser :: Type #

ToHeaders GetUser # 
Instance details

Defined in Network.AWS.IAM.GetUser

Methods

toHeaders :: GetUser -> [Header] #

ToPath GetUser # 
Instance details

Defined in Network.AWS.IAM.GetUser

Methods

toPath :: GetUser -> ByteString #

ToQuery GetUser # 
Instance details

Defined in Network.AWS.IAM.GetUser

NFData GetUser # 
Instance details

Defined in Network.AWS.IAM.GetUser

Methods

rnf :: GetUser -> () #

type Rep GetUser # 
Instance details

Defined in Network.AWS.IAM.GetUser

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

Defined in Network.AWS.IAM.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. This parameter allows (per its regex pattern ) 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 # 
Instance details

Defined in Network.AWS.IAM.GetUser

Data GetUserResponse # 
Instance details

Defined in Network.AWS.IAM.GetUser

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 # 
Instance details

Defined in Network.AWS.IAM.GetUser

Show GetUserResponse # 
Instance details

Defined in Network.AWS.IAM.GetUser

Generic GetUserResponse # 
Instance details

Defined in Network.AWS.IAM.GetUser

Associated Types

type Rep GetUserResponse :: Type -> Type #

NFData GetUserResponse # 
Instance details

Defined in Network.AWS.IAM.GetUser

Methods

rnf :: GetUserResponse -> () #

type Rep GetUserResponse # 
Instance details

Defined in Network.AWS.IAM.GetUser

type Rep GetUserResponse = D1 (MetaData "GetUserResponse" "Network.AWS.IAM.GetUser" "amazonka-iam-1.6.1-GVjkJ4xTMMc7GNa2rMCkPz" False) (C1 (MetaCons "GetUserResponse'" PrefixI True) (S1 (MetaSel (Just "_gursResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int) :*: S1 (MetaSel (Just "_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.