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 |
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
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:
cpAccessToken
- The access token in the change password request.cpPreviousPassword
- The old password in the change password request.cpProposedPassword
- The new password in the change password request.
data ChangePassword Source #
Represents the request to change a user password.
See: changePassword
smart constructor.
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:
cprsResponseStatus
- -- | The response status code.
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.