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

Copyright(c) 2013-2015 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 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.

See: AWS API Reference for GetUser.

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:

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.

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.

Response Lenses

gursResponseStatus :: Lens' GetUserResponse Int Source

The response status code.

gursUser :: Lens' GetUserResponse User Source

Information about the user.