| Copyright | (c) 2013-2016 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.IAM.GetUser
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.
- getUser :: GetUser
- data GetUser
- guUserName :: Lens' GetUser (Maybe Text)
- getUserResponse :: Int -> User -> GetUserResponse
- data GetUserResponse
- gursResponseStatus :: Lens' GetUserResponse Int
- gursUser :: Lens' GetUserResponse User
Creating a Request
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:
See: getUser smart constructor.
Instances
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
Arguments
| :: Int | |
| -> User | |
| -> 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 Source #
Contains the response to a successful GetUser request.
See: getUserResponse smart constructor.
Response Lenses
gursResponseStatus :: Lens' GetUserResponse Int Source #
The response status code.