libZSservicesZSamazonka-cognito-idpZSamazonka-cognito-idp
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CognitoIdentityProvider.GetUser

Description

Gets the user attributes and metadata for a user.

Synopsis

Creating a Request

data GetUser Source #

Represents the request to get information about the user.

See: newGetUser smart constructor.

Constructors

GetUser' 

Fields

Instances

Instances details
Eq GetUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.GetUser

Methods

(==) :: GetUser -> GetUser -> Bool #

(/=) :: GetUser -> GetUser -> Bool #

Show GetUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.GetUser

Generic GetUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.GetUser

Associated Types

type Rep GetUser :: Type -> Type #

Methods

from :: GetUser -> Rep GetUser x #

to :: Rep GetUser x -> GetUser #

NFData GetUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.GetUser

Methods

rnf :: GetUser -> () #

Hashable GetUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.GetUser

Methods

hashWithSalt :: Int -> GetUser -> Int #

hash :: GetUser -> Int #

ToJSON GetUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.GetUser

AWSRequest GetUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.GetUser

Associated Types

type AWSResponse GetUser #

ToHeaders GetUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.GetUser

Methods

toHeaders :: GetUser -> [Header] #

ToPath GetUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.GetUser

Methods

toPath :: GetUser -> ByteString #

ToQuery GetUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.GetUser

type Rep GetUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.GetUser

type Rep GetUser = D1 ('MetaData "GetUser" "Amazonka.CognitoIdentityProvider.GetUser" "libZSservicesZSamazonka-cognito-idpZSamazonka-cognito-idp" 'False) (C1 ('MetaCons "GetUser'" 'PrefixI 'True) (S1 ('MetaSel ('Just "accessToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text))))
type AWSResponse GetUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.GetUser

newGetUser 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: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.

Constructors

GetUserResponse' 

Fields

  • userMFASettingList :: Maybe [Text]

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

  • mfaOptions :: Maybe [MFAOptionType]

    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.

  • preferredMfaSetting :: Maybe Text

    The user's preferred MFA setting.

  • httpStatus :: Int

    The response's http status code.

  • username :: Sensitive Text

    The user name of the user you wish to retrieve from the get user request.

  • userAttributes :: [AttributeType]

    An array of name-value pairs representing user attributes.

    For custom attributes, you must prepend the custom: prefix to the attribute name.

Instances

Instances details
Eq GetUserResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.GetUser

Show GetUserResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.GetUser

Generic GetUserResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.GetUser

Associated Types

type Rep GetUserResponse :: Type -> Type #

NFData GetUserResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.GetUser

Methods

rnf :: GetUserResponse -> () #

type Rep GetUserResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.GetUser

type Rep GetUserResponse = D1 ('MetaData "GetUserResponse" "Amazonka.CognitoIdentityProvider.GetUser" "libZSservicesZSamazonka-cognito-idpZSamazonka-cognito-idp" 'False) (C1 ('MetaCons "GetUserResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "userMFASettingList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "mfaOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [MFAOptionType])) :*: S1 ('MetaSel ('Just "preferredMfaSetting") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text)) :*: S1 ('MetaSel ('Just "userAttributes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [AttributeType])))))

newGetUserResponse Source #

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_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.