| Copyright | (c) 2013-2016 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.CognitoIdentityProvider.ChangePassword
Description
Changes the password for a specified user in a user pool.
- changePassword :: Text -> Text -> ChangePassword
- data ChangePassword
- cpAccessToken :: Lens' ChangePassword (Maybe Text)
- cpPreviousPassword :: Lens' ChangePassword Text
- cpProposedPassword :: Lens' ChangePassword Text
- changePasswordResponse :: Int -> ChangePasswordResponse
- data ChangePasswordResponse
- cprsResponseStatus :: Lens' ChangePasswordResponse Int
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> ChangePassword |
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
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 #
Arguments
| :: Int | |
| -> ChangePasswordResponse |
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.
Response Lenses
cprsResponseStatus :: Lens' ChangePasswordResponse Int Source #
The response status code.