amazonka-cognito-idp-2.0: Amazon Cognito Identity Provider SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CognitoIdentityProvider.AdminGetUser

Description

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

Creating a Request

data AdminGetUser Source #

Represents the request to get the specified user as an administrator.

See: newAdminGetUser smart constructor.

Constructors

AdminGetUser' 

Fields

  • userPoolId :: Text

    The user pool ID for the user pool where you want to get information about the user.

  • username :: Sensitive Text

    The user name of the user you want to retrieve.

Instances

Instances details
ToJSON AdminGetUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminGetUser

ToHeaders AdminGetUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminGetUser

ToPath AdminGetUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminGetUser

ToQuery AdminGetUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminGetUser

AWSRequest AdminGetUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminGetUser

Associated Types

type AWSResponse AdminGetUser #

Generic AdminGetUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminGetUser

Associated Types

type Rep AdminGetUser :: Type -> Type #

Show AdminGetUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminGetUser

NFData AdminGetUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminGetUser

Methods

rnf :: AdminGetUser -> () #

Eq AdminGetUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminGetUser

Hashable AdminGetUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminGetUser

type AWSResponse AdminGetUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminGetUser

type Rep AdminGetUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminGetUser

type Rep AdminGetUser = D1 ('MetaData "AdminGetUser" "Amazonka.CognitoIdentityProvider.AdminGetUser" "amazonka-cognito-idp-2.0-D1ERgMvEVPG9z8cOLXdU2" 'False) (C1 ('MetaCons "AdminGetUser'" 'PrefixI 'True) (S1 ('MetaSel ('Just "userPoolId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text))))

newAdminGetUser Source #

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.

Constructors

AdminGetUserResponse' 

Fields

  • enabled :: Maybe Bool

    Indicates that the status is enabled.

  • mfaOptions :: Maybe [MFAOptionType]

    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.

  • preferredMfaSetting :: Maybe Text

    The user's preferred MFA setting.

  • userAttributes :: Maybe [AttributeType]

    An array of name-value pairs representing user attributes.

  • userCreateDate :: Maybe POSIX

    The date the user was created.

  • userLastModifiedDate :: Maybe POSIX

    The date the user was last modified.

  • userMFASettingList :: Maybe [Text]

    The MFA options that are activated for the user. The possible values in this list are SMS_MFA and SOFTWARE_TOKEN_MFA.

  • userStatus :: Maybe UserStatusType

    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.
  • httpStatus :: Int

    The response's http status code.

  • username :: Sensitive Text

    The user name of the user about whom you're receiving information.

Instances

Instances details
Generic AdminGetUserResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminGetUser

Associated Types

type Rep AdminGetUserResponse :: Type -> Type #

Show AdminGetUserResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminGetUser

NFData AdminGetUserResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminGetUser

Methods

rnf :: AdminGetUserResponse -> () #

Eq AdminGetUserResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminGetUser

type Rep AdminGetUserResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminGetUser

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_userAttributes :: Lens' AdminGetUserResponse (Maybe [AttributeType]) Source #

An array of name-value pairs representing user attributes.

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_username :: Lens' AdminGetUserResponse Text Source #

The user name of the user about whom you're receiving information.