Copyright | (c) 2013-2021 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 |
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 Amazon Web Services access key ID used to sign the request to this operation.
Synopsis
- data GetUser = GetUser' {}
- newGetUser :: GetUser
- getUser_userName :: Lens' GetUser (Maybe Text)
- data GetUserResponse = GetUserResponse' {
- httpStatus :: Int
- user :: User
- newGetUserResponse :: Int -> User -> GetUserResponse
- getUserResponse_httpStatus :: Lens' GetUserResponse Int
- getUserResponse_user :: Lens' GetUserResponse User
Creating a Request
See: newGetUser
smart constructor.
GetUser' | |
|
Instances
Eq GetUser Source # | |
Read GetUser Source # | |
Show GetUser Source # | |
Generic GetUser Source # | |
NFData GetUser Source # | |
Defined in Amazonka.IAM.GetUser | |
Hashable GetUser Source # | |
Defined in Amazonka.IAM.GetUser | |
AWSRequest GetUser Source # | |
Defined in Amazonka.IAM.GetUser type AWSResponse GetUser # request :: GetUser -> Request GetUser # response :: MonadResource m => Logger -> Service -> Proxy GetUser -> ClientResponse ClientBody -> m (Either Error (ClientResponse (AWSResponse GetUser))) # | |
ToHeaders GetUser Source # | |
Defined in Amazonka.IAM.GetUser | |
ToPath GetUser Source # | |
Defined in Amazonka.IAM.GetUser toPath :: GetUser -> ByteString # | |
ToQuery GetUser Source # | |
Defined in Amazonka.IAM.GetUser toQuery :: GetUser -> QueryString # | |
type Rep GetUser Source # | |
Defined in Amazonka.IAM.GetUser | |
type AWSResponse GetUser Source # | |
Defined in Amazonka.IAM.GetUser |
newGetUser :: GetUser Source #
Create a value of GetUser
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:userName:GetUser'
, getUser_userName
- 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 (through 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: _+=,.@-
Request Lenses
getUser_userName :: 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 (through 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
data GetUserResponse Source #
Contains the response to a successful GetUser request.
See: newGetUserResponse
smart constructor.
GetUserResponse' | |
|
Instances
Create a value of GetUserResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:GetUserResponse'
, getUserResponse_httpStatus
- The response's http status code.
$sel:user:GetUserResponse'
, getUserResponse_user
- A structure containing details about the IAM user.
Due to a service issue, password last used data does not include password use from May 3, 2018 22:50 PDT to May 23, 2018 14:08 PDT. This affects last sign-in dates shown in the IAM console and password last used dates in the IAM credential report, and returned by this operation. If users signed in during the affected time, the password last used date that is returned is the date the user last signed in before May 3, 2018. For users that signed in after May 23, 2018 14:08 PDT, the returned password last used date is accurate.
You can use password last used information to identify unused credentials for deletion. For example, you might delete users who did not sign in to Amazon Web Services in the last 90 days. In cases like this, we recommend that you adjust your evaluation window to include dates after May 23, 2018. Alternatively, if your users use access keys to access Amazon Web Services programmatically you can refer to access key last used information because it is accurate for all dates.
Response Lenses
getUserResponse_httpStatus :: Lens' GetUserResponse Int Source #
The response's http status code.
getUserResponse_user :: Lens' GetUserResponse User Source #
A structure containing details about the IAM user.
Due to a service issue, password last used data does not include password use from May 3, 2018 22:50 PDT to May 23, 2018 14:08 PDT. This affects last sign-in dates shown in the IAM console and password last used dates in the IAM credential report, and returned by this operation. If users signed in during the affected time, the password last used date that is returned is the date the user last signed in before May 3, 2018. For users that signed in after May 23, 2018 14:08 PDT, the returned password last used date is accurate.
You can use password last used information to identify unused credentials for deletion. For example, you might delete users who did not sign in to Amazon Web Services in the last 90 days. In cases like this, we recommend that you adjust your evaluation window to include dates after May 23, 2018. Alternatively, if your users use access keys to access Amazon Web Services programmatically you can refer to access key last used information because it is accurate for all dates.