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 |
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 will be placed into 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 does not
sign in before it expires, the user will not be able to sign in and
their password will need to be reset by an administrator.
Once the user has set a new password, or the password is permanent, the
user status will be 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.
$sel:userPoolId:AdminSetUserPassword'
, adminSetUserPassword_userPoolId
- The user pool ID for the user pool where you want to set the user's
password.
$sel:username:AdminSetUserPassword'
, adminSetUserPassword_username
- The user name of the user whose password you wish 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 wish 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.