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

Description

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

Synopsis

Creating a Request

data ChangePassword Source #

Represents the request to change a user password.

See: newChangePassword smart constructor.

Constructors

ChangePassword' 

Fields

Instances

Instances details
ToJSON ChangePassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ChangePassword

ToHeaders ChangePassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ChangePassword

ToPath ChangePassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ChangePassword

ToQuery ChangePassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ChangePassword

AWSRequest ChangePassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ChangePassword

Associated Types

type AWSResponse ChangePassword #

Generic ChangePassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ChangePassword

Associated Types

type Rep ChangePassword :: Type -> Type #

Show ChangePassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ChangePassword

NFData ChangePassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ChangePassword

Methods

rnf :: ChangePassword -> () #

Eq ChangePassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ChangePassword

Hashable ChangePassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ChangePassword

type AWSResponse ChangePassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ChangePassword

type Rep ChangePassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ChangePassword

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

newChangePassword Source #

Create a value of ChangePassword 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:previousPassword:ChangePassword', changePassword_previousPassword - The old password.

$sel:proposedPassword:ChangePassword', changePassword_proposedPassword - The new password.

ChangePassword, changePassword_accessToken - A valid access token that Amazon Cognito issued to the user whose password you want to change.

Request Lenses

changePassword_accessToken :: Lens' ChangePassword Text Source #

A valid access token that Amazon Cognito issued to the user whose password you want to change.

Destructuring the Response

data ChangePasswordResponse Source #

The response from the server to the change password request.

See: newChangePasswordResponse smart constructor.

Constructors

ChangePasswordResponse' 

Fields

Instances

Instances details
Generic ChangePasswordResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ChangePassword

Associated Types

type Rep ChangePasswordResponse :: Type -> Type #

Read ChangePasswordResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ChangePassword

Show ChangePasswordResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ChangePassword

NFData ChangePasswordResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ChangePassword

Methods

rnf :: ChangePasswordResponse -> () #

Eq ChangePasswordResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ChangePassword

type Rep ChangePasswordResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ChangePassword

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

newChangePasswordResponse Source #

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

Response Lenses