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

Description

Use this API to register a user's entered TOTP code and mark the user's software token MFA status as "verified" if successful. The request takes an access token or a session string, but not both.

Synopsis

Creating a Request

data VerifySoftwareToken Source #

See: newVerifySoftwareToken smart constructor.

Constructors

VerifySoftwareToken' 

Fields

Instances

Instances details
Eq VerifySoftwareToken Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

Show VerifySoftwareToken Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

Generic VerifySoftwareToken Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

Associated Types

type Rep VerifySoftwareToken :: Type -> Type #

NFData VerifySoftwareToken Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

Methods

rnf :: VerifySoftwareToken -> () #

Hashable VerifySoftwareToken Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

ToJSON VerifySoftwareToken Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

AWSRequest VerifySoftwareToken Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

Associated Types

type AWSResponse VerifySoftwareToken #

ToHeaders VerifySoftwareToken Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

ToPath VerifySoftwareToken Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

ToQuery VerifySoftwareToken Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

type Rep VerifySoftwareToken Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

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

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

newVerifySoftwareToken Source #

Create a value of VerifySoftwareToken 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:VerifySoftwareToken', verifySoftwareToken_accessToken - The access token.

$sel:friendlyDeviceName:VerifySoftwareToken', verifySoftwareToken_friendlyDeviceName - The friendly device name.

$sel:session:VerifySoftwareToken', verifySoftwareToken_session - The session which should be passed both ways in challenge-response calls to the service.

$sel:userCode:VerifySoftwareToken', verifySoftwareToken_userCode - The one time password computed using the secret code returned by AssociateSoftwareToken".

Request Lenses

verifySoftwareToken_session :: Lens' VerifySoftwareToken (Maybe Text) Source #

The session which should be passed both ways in challenge-response calls to the service.

verifySoftwareToken_userCode :: Lens' VerifySoftwareToken Text Source #

The one time password computed using the secret code returned by AssociateSoftwareToken".

Destructuring the Response

data VerifySoftwareTokenResponse Source #

See: newVerifySoftwareTokenResponse smart constructor.

Constructors

VerifySoftwareTokenResponse' 

Fields

Instances

Instances details
Eq VerifySoftwareTokenResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

Read VerifySoftwareTokenResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

Show VerifySoftwareTokenResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

Generic VerifySoftwareTokenResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

Associated Types

type Rep VerifySoftwareTokenResponse :: Type -> Type #

NFData VerifySoftwareTokenResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

type Rep VerifySoftwareTokenResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.VerifySoftwareToken

type Rep VerifySoftwareTokenResponse = D1 ('MetaData "VerifySoftwareTokenResponse" "Amazonka.CognitoIdentityProvider.VerifySoftwareToken" "libZSservicesZSamazonka-cognito-idpZSamazonka-cognito-idp" 'False) (C1 ('MetaCons "VerifySoftwareTokenResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe VerifySoftwareTokenResponseType)) :*: (S1 ('MetaSel ('Just "session") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newVerifySoftwareTokenResponse Source #

Create a value of VerifySoftwareTokenResponse 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:status:VerifySoftwareTokenResponse', verifySoftwareTokenResponse_status - The status of the verify software token.

$sel:session:VerifySoftwareToken', verifySoftwareTokenResponse_session - The session which should be passed both ways in challenge-response calls to the service.

$sel:httpStatus:VerifySoftwareTokenResponse', verifySoftwareTokenResponse_httpStatus - The response's http status code.

Response Lenses

verifySoftwareTokenResponse_session :: Lens' VerifySoftwareTokenResponse (Maybe Text) Source #

The session which should be passed both ways in challenge-response calls to the service.