Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Gets the specified user by user name in a user pool as an administrator. Works on any user.
Calling this action requires developer credentials.
Synopsis
- data AdminGetUser = AdminGetUser' {
- userPoolId :: Text
- username :: Sensitive Text
- newAdminGetUser :: Text -> Text -> AdminGetUser
- adminGetUser_userPoolId :: Lens' AdminGetUser Text
- adminGetUser_username :: Lens' AdminGetUser Text
- data AdminGetUserResponse = AdminGetUserResponse' {
- enabled :: Maybe Bool
- mfaOptions :: Maybe [MFAOptionType]
- preferredMfaSetting :: Maybe Text
- userAttributes :: Maybe [AttributeType]
- userCreateDate :: Maybe POSIX
- userLastModifiedDate :: Maybe POSIX
- userMFASettingList :: Maybe [Text]
- userStatus :: Maybe UserStatusType
- httpStatus :: Int
- username :: Sensitive Text
- newAdminGetUserResponse :: Int -> Text -> AdminGetUserResponse
- adminGetUserResponse_enabled :: Lens' AdminGetUserResponse (Maybe Bool)
- adminGetUserResponse_mfaOptions :: Lens' AdminGetUserResponse (Maybe [MFAOptionType])
- adminGetUserResponse_preferredMfaSetting :: Lens' AdminGetUserResponse (Maybe Text)
- adminGetUserResponse_userAttributes :: Lens' AdminGetUserResponse (Maybe [AttributeType])
- adminGetUserResponse_userCreateDate :: Lens' AdminGetUserResponse (Maybe UTCTime)
- adminGetUserResponse_userLastModifiedDate :: Lens' AdminGetUserResponse (Maybe UTCTime)
- adminGetUserResponse_userMFASettingList :: Lens' AdminGetUserResponse (Maybe [Text])
- adminGetUserResponse_userStatus :: Lens' AdminGetUserResponse (Maybe UserStatusType)
- adminGetUserResponse_httpStatus :: Lens' AdminGetUserResponse Int
- adminGetUserResponse_username :: Lens' AdminGetUserResponse Text
Creating a Request
data AdminGetUser Source #
Represents the request to get the specified user as an administrator.
See: newAdminGetUser
smart constructor.
AdminGetUser' | |
|
Instances
Create a value of AdminGetUser
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:
AdminGetUser
, adminGetUser_userPoolId
- The user pool ID for the user pool where you want to get information
about the user.
AdminGetUser
, adminGetUser_username
- The user name of the user you want to retrieve.
Request Lenses
adminGetUser_userPoolId :: Lens' AdminGetUser Text Source #
The user pool ID for the user pool where you want to get information about the user.
adminGetUser_username :: Lens' AdminGetUser Text Source #
The user name of the user you want to retrieve.
Destructuring the Response
data AdminGetUserResponse Source #
Represents the response from the server from the request to get the specified user as an administrator.
See: newAdminGetUserResponse
smart constructor.
AdminGetUserResponse' | |
|
Instances
newAdminGetUserResponse Source #
Create a value of AdminGetUserResponse
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:
AdminGetUserResponse
, adminGetUserResponse_enabled
- Indicates that the status is enabled
.
AdminGetUserResponse
, adminGetUserResponse_mfaOptions
- This response parameter is no longer supported. It provides
information only about SMS MFA configurations. It doesn't provide
information about time-based one-time password (TOTP) software token MFA
configurations. To look up information about either type of MFA
configuration, use UserMFASettingList instead.
$sel:preferredMfaSetting:AdminGetUserResponse'
, adminGetUserResponse_preferredMfaSetting
- The user's preferred MFA setting.
$sel:userAttributes:AdminGetUserResponse'
, adminGetUserResponse_userAttributes
- An array of name-value pairs representing user attributes.
AdminGetUserResponse
, adminGetUserResponse_userCreateDate
- The date the user was created.
AdminGetUserResponse
, adminGetUserResponse_userLastModifiedDate
- The date the user was last modified.
$sel:userMFASettingList:AdminGetUserResponse'
, adminGetUserResponse_userMFASettingList
- The MFA options that are activated for the user. The possible values in
this list are SMS_MFA
and SOFTWARE_TOKEN_MFA
.
AdminGetUserResponse
, adminGetUserResponse_userStatus
- The user status. Can be one of the following:
- UNCONFIRMED - User has been created but not confirmed.
- CONFIRMED - User has been confirmed.
- ARCHIVED - User is no longer active.
- UNKNOWN - User status isn't known.
- RESET_REQUIRED - User is confirmed, but the user must request a code and reset their password before they can sign in.
- FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign in using a temporary password, but on first sign-in, the user must change their password to a new value before doing anything else.
$sel:httpStatus:AdminGetUserResponse'
, adminGetUserResponse_httpStatus
- The response's http status code.
AdminGetUser
, adminGetUserResponse_username
- The user name of the user about whom you're receiving information.
Response Lenses
adminGetUserResponse_enabled :: Lens' AdminGetUserResponse (Maybe Bool) Source #
Indicates that the status is enabled
.
adminGetUserResponse_mfaOptions :: Lens' AdminGetUserResponse (Maybe [MFAOptionType]) Source #
This response parameter is no longer supported. It provides information only about SMS MFA configurations. It doesn't provide information about time-based one-time password (TOTP) software token MFA configurations. To look up information about either type of MFA configuration, use UserMFASettingList instead.
adminGetUserResponse_preferredMfaSetting :: Lens' AdminGetUserResponse (Maybe Text) Source #
The user's preferred MFA setting.
adminGetUserResponse_userAttributes :: Lens' AdminGetUserResponse (Maybe [AttributeType]) Source #
An array of name-value pairs representing user attributes.
adminGetUserResponse_userCreateDate :: Lens' AdminGetUserResponse (Maybe UTCTime) Source #
The date the user was created.
adminGetUserResponse_userLastModifiedDate :: Lens' AdminGetUserResponse (Maybe UTCTime) Source #
The date the user was last modified.
adminGetUserResponse_userMFASettingList :: Lens' AdminGetUserResponse (Maybe [Text]) Source #
The MFA options that are activated for the user. The possible values in
this list are SMS_MFA
and SOFTWARE_TOKEN_MFA
.
adminGetUserResponse_userStatus :: Lens' AdminGetUserResponse (Maybe UserStatusType) Source #
The user status. Can be one of the following:
- UNCONFIRMED - User has been created but not confirmed.
- CONFIRMED - User has been confirmed.
- ARCHIVED - User is no longer active.
- UNKNOWN - User status isn't known.
- RESET_REQUIRED - User is confirmed, but the user must request a code and reset their password before they can sign in.
- FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign in using a temporary password, but on first sign-in, the user must change their password to a new value before doing anything else.
adminGetUserResponse_httpStatus :: Lens' AdminGetUserResponse Int Source #
The response's http status code.
adminGetUserResponse_username :: Lens' AdminGetUserResponse Text Source #
The user name of the user about whom you're receiving information.