Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@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 -> Text -> ChangePassword
- data ChangePassword
- cpPreviousPassword :: Lens' ChangePassword Text
- cpProposedPassword :: Lens' ChangePassword Text
- cpAccessToken :: 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:
cpPreviousPassword
- The old password.cpProposedPassword
- The new password.cpAccessToken
- The access token.
data ChangePassword Source #
Represents the request to change a user password.
See: changePassword
smart constructor.
Request Lenses
cpPreviousPassword :: Lens' ChangePassword Text Source #
The old password.
cpProposedPassword :: Lens' ChangePassword Text Source #
The new password.
cpAccessToken :: Lens' ChangePassword Text Source #
The access token.
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.