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

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

Network.AWS.CognitoIdentityProvider.ForgotPassword

Contents

Description

Retrieves the password for the specified client ID or username.

Synopsis

Creating a Request

forgotPassword Source #

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

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

  • fpSecretHash - A keyed-hash message authentication code (HMAC) calculated using the secret key of a user pool client and username plus the client ID in the message.
  • fpClientId - The ID of the client associated with the user pool.
  • fpUsername - The user name of the user for whom you want to enter a code to reset a forgotten password.

data ForgotPassword Source #

Represents the request to reset a user's password.

See: forgotPassword smart constructor.

Instances

Eq ForgotPassword Source # 
Data ForgotPassword Source # 

Methods

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

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

toConstr :: ForgotPassword -> Constr #

dataTypeOf :: ForgotPassword -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ForgotPassword Source # 
Show ForgotPassword Source # 
Generic ForgotPassword Source # 

Associated Types

type Rep ForgotPassword :: * -> * #

Hashable ForgotPassword Source # 
ToJSON ForgotPassword Source # 
NFData ForgotPassword Source # 

Methods

rnf :: ForgotPassword -> () #

AWSRequest ForgotPassword Source # 
ToPath ForgotPassword Source # 
ToHeaders ForgotPassword Source # 
ToQuery ForgotPassword Source # 
type Rep ForgotPassword Source # 
type Rep ForgotPassword = D1 (MetaData "ForgotPassword" "Network.AWS.CognitoIdentityProvider.ForgotPassword" "amazonka-cognito-idp-1.4.5-GXmpY7qnFXp3lLWwYVX1Gb" False) (C1 (MetaCons "ForgotPassword'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_fpSecretHash") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Sensitive Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_fpClientId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Sensitive Text))) (S1 (MetaSel (Just Symbol "_fpUsername") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Sensitive Text))))))
type Rs ForgotPassword Source # 

Request Lenses

fpSecretHash :: Lens' ForgotPassword (Maybe Text) Source #

A keyed-hash message authentication code (HMAC) calculated using the secret key of a user pool client and username plus the client ID in the message.

fpClientId :: Lens' ForgotPassword Text Source #

The ID of the client associated with the user pool.

fpUsername :: Lens' ForgotPassword Text Source #

The user name of the user for whom you want to enter a code to reset a forgotten password.

Destructuring the Response

forgotPasswordResponse Source #

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

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

data ForgotPasswordResponse Source #

Respresents the response from the server regarding the request to reset a password.

See: forgotPasswordResponse smart constructor.

Instances

Eq ForgotPasswordResponse Source # 
Data ForgotPasswordResponse Source # 

Methods

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

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

toConstr :: ForgotPasswordResponse -> Constr #

dataTypeOf :: ForgotPasswordResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ForgotPasswordResponse Source # 
Show ForgotPasswordResponse Source # 
Generic ForgotPasswordResponse Source # 
NFData ForgotPasswordResponse Source # 

Methods

rnf :: ForgotPasswordResponse -> () #

type Rep ForgotPasswordResponse Source # 
type Rep ForgotPasswordResponse = D1 (MetaData "ForgotPasswordResponse" "Network.AWS.CognitoIdentityProvider.ForgotPassword" "amazonka-cognito-idp-1.4.5-GXmpY7qnFXp3lLWwYVX1Gb" False) (C1 (MetaCons "ForgotPasswordResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_fprsCodeDeliveryDetails") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe CodeDeliveryDetailsType))) (S1 (MetaSel (Just Symbol "_fprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

fprsCodeDeliveryDetails :: Lens' ForgotPasswordResponse (Maybe CodeDeliveryDetailsType) Source #

The code delivery details returned by the server in response to the request to reset a password.

fprsResponseStatus :: Lens' ForgotPasswordResponse Int Source #

  • - | The response status code.