Copyright | (c) 2013-2021 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 |
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.
ChangePassword' | |
|
Instances
:: 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.
$sel:accessToken:ChangePassword'
, changePassword_accessToken
- The access token.
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 #
The access token.
Destructuring the Response
data ChangePasswordResponse Source #
The response from the server to the change password request.
See: newChangePasswordResponse
smart constructor.
ChangePasswordResponse' | |
|
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.