| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CognitoIdentityProvider.ChangePassword
Description
Changes the password for a specified user in a user pool.
Synopsis
- data ChangePassword = ChangePassword' {}
- newChangePassword :: Text -> Text -> Text -> ChangePassword
- changePassword_previousPassword :: Lens' ChangePassword Text
- changePassword_proposedPassword :: Lens' ChangePassword Text
- changePassword_accessToken :: Lens' ChangePassword Text
- data ChangePasswordResponse = ChangePasswordResponse' {
- httpStatus :: Int
- newChangePasswordResponse :: Int -> ChangePasswordResponse
- changePasswordResponse_httpStatus :: Lens' ChangePasswordResponse Int
Creating a Request
data ChangePassword Source #
Represents the request to change a user password.
See: newChangePassword smart constructor.
Constructors
| ChangePassword' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> ChangePassword |
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_previousPassword :: Lens' ChangePassword Text Source #
The old password.
changePassword_proposedPassword :: Lens' ChangePassword Text Source #
The new password.
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
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
changePasswordResponse_httpStatus :: Lens' ChangePasswordResponse Int Source #
The response's http status code.