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 |
Sets the specified user's password in a user pool as an administrator. Works on any user.
The password can be temporary or permanent. If it is temporary, the user
status enters the FORCE_CHANGE_PASSWORD
state. When the user next
tries to sign in, the InitiateAuth/AdminInitiateAuth response will
contain the NEW_PASSWORD_REQUIRED
challenge. If the user doesn't sign
in before it expires, the user won't be able to sign in, and an
administrator must reset their password.
Once the user has set a new password, or the password is permanent, the
user status is set to Confirmed
.
Synopsis
- data AdminSetUserPassword = AdminSetUserPassword' {}
- newAdminSetUserPassword :: Text -> Text -> Text -> AdminSetUserPassword
- adminSetUserPassword_permanent :: Lens' AdminSetUserPassword (Maybe Bool)
- adminSetUserPassword_userPoolId :: Lens' AdminSetUserPassword Text
- adminSetUserPassword_username :: Lens' AdminSetUserPassword Text
- adminSetUserPassword_password :: Lens' AdminSetUserPassword Text
- data AdminSetUserPasswordResponse = AdminSetUserPasswordResponse' {
- httpStatus :: Int
- newAdminSetUserPasswordResponse :: Int -> AdminSetUserPasswordResponse
- adminSetUserPasswordResponse_httpStatus :: Lens' AdminSetUserPasswordResponse Int
Creating a Request
data AdminSetUserPassword Source #
See: newAdminSetUserPassword
smart constructor.
AdminSetUserPassword' | |
|
Instances
newAdminSetUserPassword Source #
:: Text | |
-> Text | |
-> Text | |
-> AdminSetUserPassword |
Create a value of AdminSetUserPassword
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:permanent:AdminSetUserPassword'
, adminSetUserPassword_permanent
- True
if the password is permanent, False
if it is temporary.
AdminSetUserPassword
, adminSetUserPassword_userPoolId
- The user pool ID for the user pool where you want to set the user's
password.
AdminSetUserPassword
, adminSetUserPassword_username
- The user name of the user whose password you want to set.
$sel:password:AdminSetUserPassword'
, adminSetUserPassword_password
- The password for the user.
Request Lenses
adminSetUserPassword_permanent :: Lens' AdminSetUserPassword (Maybe Bool) Source #
True
if the password is permanent, False
if it is temporary.
adminSetUserPassword_userPoolId :: Lens' AdminSetUserPassword Text Source #
The user pool ID for the user pool where you want to set the user's password.
adminSetUserPassword_username :: Lens' AdminSetUserPassword Text Source #
The user name of the user whose password you want to set.
adminSetUserPassword_password :: Lens' AdminSetUserPassword Text Source #
The password for the user.
Destructuring the Response
data AdminSetUserPasswordResponse Source #
See: newAdminSetUserPasswordResponse
smart constructor.
AdminSetUserPasswordResponse' | |
|
Instances
newAdminSetUserPasswordResponse Source #
Create a value of AdminSetUserPasswordResponse
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:AdminSetUserPasswordResponse'
, adminSetUserPasswordResponse_httpStatus
- The response's http status code.
Response Lenses
adminSetUserPasswordResponse_httpStatus :: Lens' AdminSetUserPasswordResponse Int Source #
The response's http status code.