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 |
Gets the user attributes and metadata for a user.
Synopsis
- data GetUser = GetUser' {}
- newGetUser :: Text -> GetUser
- getUser_accessToken :: Lens' GetUser Text
- data GetUserResponse = GetUserResponse' {}
- newGetUserResponse :: Int -> Text -> GetUserResponse
- getUserResponse_userMFASettingList :: Lens' GetUserResponse (Maybe [Text])
- getUserResponse_mfaOptions :: Lens' GetUserResponse (Maybe [MFAOptionType])
- getUserResponse_preferredMfaSetting :: Lens' GetUserResponse (Maybe Text)
- getUserResponse_httpStatus :: Lens' GetUserResponse Int
- getUserResponse_username :: Lens' GetUserResponse Text
- getUserResponse_userAttributes :: Lens' GetUserResponse [AttributeType]
Creating a Request
Represents the request to get information about the user.
See: newGetUser
smart constructor.
GetUser' | |
|
Instances
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:accessToken:GetUser'
, getUser_accessToken
- The access token returned by the server response to get information
about the user.
Request Lenses
getUser_accessToken :: Lens' GetUser Text Source #
The access token returned by the server response to get information about the user.
Destructuring the Response
data GetUserResponse Source #
Represents the response from the server from the request to get information about the user.
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:userMFASettingList:GetUserResponse'
, getUserResponse_userMFASettingList
- The MFA options that are enabled for the user. The possible values in
this list are SMS_MFA
and SOFTWARE_TOKEN_MFA
.
$sel:mfaOptions:GetUserResponse'
, getUserResponse_mfaOptions
- This response parameter is no longer supported. It provides
information only about SMS MFA configurations. It doesn't provide
information about TOTP software token MFA configurations. To look up
information about either type of MFA configuration, use
UserMFASettingList instead.
$sel:preferredMfaSetting:GetUserResponse'
, getUserResponse_preferredMfaSetting
- The user's preferred MFA setting.
$sel:httpStatus:GetUserResponse'
, getUserResponse_httpStatus
- The response's http status code.
$sel:username:GetUserResponse'
, getUserResponse_username
- The user name of the user you wish to retrieve from the get user
request.
$sel:userAttributes:GetUserResponse'
, getUserResponse_userAttributes
- An array of name-value pairs representing user attributes.
For custom attributes, you must prepend the custom:
prefix to the
attribute name.
Response Lenses
getUserResponse_userMFASettingList :: Lens' GetUserResponse (Maybe [Text]) Source #
The MFA options that are enabled for the user. The possible values in
this list are SMS_MFA
and SOFTWARE_TOKEN_MFA
.
getUserResponse_mfaOptions :: Lens' GetUserResponse (Maybe [MFAOptionType]) Source #
This response parameter is no longer supported. It provides information only about SMS MFA configurations. It doesn't provide information about TOTP software token MFA configurations. To look up information about either type of MFA configuration, use UserMFASettingList instead.
getUserResponse_preferredMfaSetting :: Lens' GetUserResponse (Maybe Text) Source #
The user's preferred MFA setting.
getUserResponse_httpStatus :: Lens' GetUserResponse Int Source #
The response's http status code.
getUserResponse_username :: Lens' GetUserResponse Text Source #
The user name of the user you wish to retrieve from the get user request.
getUserResponse_userAttributes :: Lens' GetUserResponse [AttributeType] Source #
An array of name-value pairs representing user attributes.
For custom attributes, you must prepend the custom:
prefix to the
attribute name.