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

Contents

Description

Changes the password for a specified user in a user pool.

Synopsis

Creating a Request

changePassword Source #

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

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

data ChangePassword Source #

Represents the request to change a user password.

See: changePassword smart constructor.

Instances

Eq ChangePassword Source # 
Data ChangePassword Source # 

Methods

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

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

toConstr :: ChangePassword -> Constr #

dataTypeOf :: ChangePassword -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ChangePassword Source # 
Show ChangePassword Source # 
Generic ChangePassword Source # 

Associated Types

type Rep ChangePassword :: * -> * #

Hashable ChangePassword Source # 
ToJSON ChangePassword Source # 
NFData ChangePassword Source # 

Methods

rnf :: ChangePassword -> () #

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

Request Lenses

cpAccessToken :: Lens' ChangePassword (Maybe Text) Source #

The access token in the change password request.

cpPreviousPassword :: Lens' ChangePassword Text Source #

The old password in the change password request.

cpProposedPassword :: Lens' ChangePassword Text Source #

The new password in the change password request.

Destructuring the Response

changePasswordResponse Source #

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

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

data ChangePasswordResponse Source #

The response from the server to the change password request.

See: changePasswordResponse smart constructor.

Instances

Eq ChangePasswordResponse Source # 
Data ChangePasswordResponse Source # 

Methods

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

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

toConstr :: ChangePasswordResponse -> Constr #

dataTypeOf :: ChangePasswordResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ChangePasswordResponse Source # 
Show ChangePasswordResponse Source # 
Generic ChangePasswordResponse Source # 
NFData ChangePasswordResponse Source # 

Methods

rnf :: ChangePasswordResponse -> () #

type Rep ChangePasswordResponse Source # 
type Rep ChangePasswordResponse = D1 (MetaData "ChangePasswordResponse" "Network.AWS.CognitoIdentityProvider.ChangePassword" "amazonka-cognito-idp-1.4.5-GXmpY7qnFXp3lLWwYVX1Gb" True) (C1 (MetaCons "ChangePasswordResponse'" PrefixI True) (S1 (MetaSel (Just Symbol "_cprsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses

cprsResponseStatus :: Lens' ChangePasswordResponse Int Source #

  • - | The response status code.