Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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
- 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:
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: _+=,.@-
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. 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
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:
gursResponseStatus
- -- | The response status code.gursUser
- A structure containing details about the IAM user.
data GetUserResponse Source #
Contains the response to a successful GetUser
request.
See: getUserResponse
smart constructor.
Instances
Response Lenses
gursResponseStatus :: Lens' GetUserResponse Int Source #
- - | The response status code.