| 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.WorkMail.ResetPassword
Description
Allows the administrator to reset the password for a user.
Synopsis
- data ResetPassword = ResetPassword' {}
- newResetPassword :: Text -> Text -> Text -> ResetPassword
- resetPassword_organizationId :: Lens' ResetPassword Text
- resetPassword_userId :: Lens' ResetPassword Text
- resetPassword_password :: Lens' ResetPassword Text
- data ResetPasswordResponse = ResetPasswordResponse' {
- httpStatus :: Int
- newResetPasswordResponse :: Int -> ResetPasswordResponse
- resetPasswordResponse_httpStatus :: Lens' ResetPasswordResponse Int
Creating a Request
data ResetPassword Source #
See: newResetPassword smart constructor.
Constructors
| ResetPassword' | |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> ResetPassword |
Create a value of ResetPassword 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:
ResetPassword, resetPassword_organizationId - The identifier of the organization that contains the user for which the
password is reset.
ResetPassword, resetPassword_userId - The identifier of the user for whom the password is reset.
$sel:password:ResetPassword', resetPassword_password - The new password for the user.
Request Lenses
resetPassword_organizationId :: Lens' ResetPassword Text Source #
The identifier of the organization that contains the user for which the password is reset.
resetPassword_userId :: Lens' ResetPassword Text Source #
The identifier of the user for whom the password is reset.
resetPassword_password :: Lens' ResetPassword Text Source #
The new password for the user.
Destructuring the Response
data ResetPasswordResponse Source #
See: newResetPasswordResponse smart constructor.
Constructors
| ResetPasswordResponse' | |
Fields
| |
Instances
newResetPasswordResponse Source #
Create a value of ResetPasswordResponse 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:ResetPasswordResponse', resetPasswordResponse_httpStatus - The response's http status code.
Response Lenses
resetPasswordResponse_httpStatus :: Lens' ResetPasswordResponse Int Source #
The response's http status code.