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

Description

Verifies the specified user attributes in the user pool.

If your user pool requires verification before Amazon Cognito updates the attribute value, VerifyUserAttribute updates the affected attribute to its pending value. For more information, see UserAttributeUpdateSettingsType.

Synopsis

Creating a Request

data VerifyUserAttribute Source #

Represents the request to verify user attributes.

See: newVerifyUserAttribute smart constructor.

Constructors

VerifyUserAttribute' 

Fields

  • accessToken :: Sensitive Text

    A valid access token that Amazon Cognito issued to the user whose user attributes you want to verify.

  • attributeName :: Text

    The attribute name in the request to verify user attributes.

  • code :: Text

    The verification code in the request to verify user attributes.

Instances

Instances details
ToJSON VerifyUserAttribute Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifyUserAttribute

ToHeaders VerifyUserAttribute Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifyUserAttribute

ToPath VerifyUserAttribute Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifyUserAttribute

ToQuery VerifyUserAttribute Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifyUserAttribute

AWSRequest VerifyUserAttribute Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifyUserAttribute

Associated Types

type AWSResponse VerifyUserAttribute #

Generic VerifyUserAttribute Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifyUserAttribute

Associated Types

type Rep VerifyUserAttribute :: Type -> Type #

Show VerifyUserAttribute Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifyUserAttribute

NFData VerifyUserAttribute Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifyUserAttribute

Methods

rnf :: VerifyUserAttribute -> () #

Eq VerifyUserAttribute Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifyUserAttribute

Hashable VerifyUserAttribute Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifyUserAttribute

type AWSResponse VerifyUserAttribute Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifyUserAttribute

type Rep VerifyUserAttribute Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifyUserAttribute

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

newVerifyUserAttribute Source #

Create a value of VerifyUserAttribute 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:

VerifyUserAttribute, verifyUserAttribute_accessToken - A valid access token that Amazon Cognito issued to the user whose user attributes you want to verify.

VerifyUserAttribute, verifyUserAttribute_attributeName - The attribute name in the request to verify user attributes.

$sel:code:VerifyUserAttribute', verifyUserAttribute_code - The verification code in the request to verify user attributes.

Request Lenses

verifyUserAttribute_accessToken :: Lens' VerifyUserAttribute Text Source #

A valid access token that Amazon Cognito issued to the user whose user attributes you want to verify.

verifyUserAttribute_attributeName :: Lens' VerifyUserAttribute Text Source #

The attribute name in the request to verify user attributes.

verifyUserAttribute_code :: Lens' VerifyUserAttribute Text Source #

The verification code in the request to verify user attributes.

Destructuring the Response

data VerifyUserAttributeResponse Source #

A container representing the response from the server from the request to verify user attributes.

See: newVerifyUserAttributeResponse smart constructor.

Constructors

VerifyUserAttributeResponse' 

Fields

Instances

Instances details
Generic VerifyUserAttributeResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifyUserAttribute

Associated Types

type Rep VerifyUserAttributeResponse :: Type -> Type #

Read VerifyUserAttributeResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifyUserAttribute

Show VerifyUserAttributeResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifyUserAttribute

NFData VerifyUserAttributeResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifyUserAttribute

Eq VerifyUserAttributeResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifyUserAttribute

type Rep VerifyUserAttributeResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifyUserAttribute

type Rep VerifyUserAttributeResponse = D1 ('MetaData "VerifyUserAttributeResponse" "Amazonka.CognitoIdentityProvider.VerifyUserAttribute" "amazonka-cognito-idp-2.0-D1ERgMvEVPG9z8cOLXdU2" 'False) (C1 ('MetaCons "VerifyUserAttributeResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newVerifyUserAttributeResponse Source #

Create a value of VerifyUserAttributeResponse 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:VerifyUserAttributeResponse', verifyUserAttributeResponse_httpStatus - The response's http status code.

Response Lenses