amazonka-cognito-idp-1.6.0: Amazon Cognito Identity Provider SDK.

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

Network.AWS.CognitoIdentityProvider.VerifySoftwareToken

Contents

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,

Synopsis

Creating a Request

verifySoftwareToken Source #

Creates a value of VerifySoftwareToken with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data VerifySoftwareToken Source #

See: verifySoftwareToken smart constructor.

Instances

Eq VerifySoftwareToken Source # 
Data VerifySoftwareToken Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> VerifySoftwareToken -> c VerifySoftwareToken #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c VerifySoftwareToken #

toConstr :: VerifySoftwareToken -> Constr #

dataTypeOf :: VerifySoftwareToken -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c VerifySoftwareToken) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c VerifySoftwareToken) #

gmapT :: (forall b. Data b => b -> b) -> VerifySoftwareToken -> VerifySoftwareToken #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> VerifySoftwareToken -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> VerifySoftwareToken -> r #

gmapQ :: (forall d. Data d => d -> u) -> VerifySoftwareToken -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> VerifySoftwareToken -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> VerifySoftwareToken -> m VerifySoftwareToken #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> VerifySoftwareToken -> m VerifySoftwareToken #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> VerifySoftwareToken -> m VerifySoftwareToken #

Show VerifySoftwareToken Source # 
Generic VerifySoftwareToken Source # 
Hashable VerifySoftwareToken Source # 
ToJSON VerifySoftwareToken Source # 
NFData VerifySoftwareToken Source # 

Methods

rnf :: VerifySoftwareToken -> () #

AWSRequest VerifySoftwareToken Source # 
ToHeaders VerifySoftwareToken Source # 
ToPath VerifySoftwareToken Source # 
ToQuery VerifySoftwareToken Source # 
type Rep VerifySoftwareToken Source # 
type Rep VerifySoftwareToken = D1 * (MetaData "VerifySoftwareToken" "Network.AWS.CognitoIdentityProvider.VerifySoftwareToken" "amazonka-cognito-idp-1.6.0-JhJp6CX0k821Z1WSNBuBfd" False) (C1 * (MetaCons "VerifySoftwareToken'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_vstAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe (Sensitive Text)))) (S1 * (MetaSel (Just Symbol "_vstFriendlyDeviceName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_vstSession") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_vstUserCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs VerifySoftwareToken Source # 

Request Lenses

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

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

vstUserCode :: Lens' VerifySoftwareToken Text Source #

The one time password computed using the secret code returned by

Destructuring the Response

verifySoftwareTokenResponse Source #

Creates a value of VerifySoftwareTokenResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data VerifySoftwareTokenResponse Source #

See: verifySoftwareTokenResponse smart constructor.

Instances

Eq VerifySoftwareTokenResponse Source # 
Data VerifySoftwareTokenResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> VerifySoftwareTokenResponse -> c VerifySoftwareTokenResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c VerifySoftwareTokenResponse #

toConstr :: VerifySoftwareTokenResponse -> Constr #

dataTypeOf :: VerifySoftwareTokenResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c VerifySoftwareTokenResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c VerifySoftwareTokenResponse) #

gmapT :: (forall b. Data b => b -> b) -> VerifySoftwareTokenResponse -> VerifySoftwareTokenResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> VerifySoftwareTokenResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> VerifySoftwareTokenResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> VerifySoftwareTokenResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> VerifySoftwareTokenResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> VerifySoftwareTokenResponse -> m VerifySoftwareTokenResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> VerifySoftwareTokenResponse -> m VerifySoftwareTokenResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> VerifySoftwareTokenResponse -> m VerifySoftwareTokenResponse #

Read VerifySoftwareTokenResponse Source # 
Show VerifySoftwareTokenResponse Source # 
Generic VerifySoftwareTokenResponse Source # 
NFData VerifySoftwareTokenResponse Source # 
type Rep VerifySoftwareTokenResponse Source # 
type Rep VerifySoftwareTokenResponse = D1 * (MetaData "VerifySoftwareTokenResponse" "Network.AWS.CognitoIdentityProvider.VerifySoftwareToken" "amazonka-cognito-idp-1.6.0-JhJp6CX0k821Z1WSNBuBfd" False) (C1 * (MetaCons "VerifySoftwareTokenResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_vstrsStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe VerifySoftwareTokenResponseType))) ((:*:) * (S1 * (MetaSel (Just Symbol "_vstrsSession") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_vstrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

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

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