libZSservicesZSamazonka-cognito-idpZSamazonka-cognito-idp
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CognitoIdentityProvider.AdminSetUserPassword

Description

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

Creating a Request

data AdminSetUserPassword Source #

See: newAdminSetUserPassword smart constructor.

Constructors

AdminSetUserPassword' 

Fields

Instances

Instances details
Eq AdminSetUserPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserPassword

Show AdminSetUserPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserPassword

Generic AdminSetUserPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserPassword

Associated Types

type Rep AdminSetUserPassword :: Type -> Type #

NFData AdminSetUserPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserPassword

Methods

rnf :: AdminSetUserPassword -> () #

Hashable AdminSetUserPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserPassword

ToJSON AdminSetUserPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserPassword

AWSRequest AdminSetUserPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserPassword

Associated Types

type AWSResponse AdminSetUserPassword #

ToHeaders AdminSetUserPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserPassword

ToPath AdminSetUserPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserPassword

ToQuery AdminSetUserPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserPassword

type Rep AdminSetUserPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserPassword

type Rep AdminSetUserPassword = D1 ('MetaData "AdminSetUserPassword" "Amazonka.CognitoIdentityProvider.AdminSetUserPassword" "libZSservicesZSamazonka-cognito-idpZSamazonka-cognito-idp" 'False) (C1 ('MetaCons "AdminSetUserPassword'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "permanent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "userPoolId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text)) :*: S1 ('MetaSel ('Just "password") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text)))))
type AWSResponse AdminSetUserPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserPassword

newAdminSetUserPassword Source #

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.

Destructuring the Response

data AdminSetUserPasswordResponse Source #

See: newAdminSetUserPasswordResponse smart constructor.

Constructors

AdminSetUserPasswordResponse' 

Fields

Instances

Instances details
Eq AdminSetUserPasswordResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserPassword

Read AdminSetUserPasswordResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserPassword

Show AdminSetUserPasswordResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserPassword

Generic AdminSetUserPasswordResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserPassword

Associated Types

type Rep AdminSetUserPasswordResponse :: Type -> Type #

NFData AdminSetUserPasswordResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserPassword

type Rep AdminSetUserPasswordResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserPassword

type Rep AdminSetUserPasswordResponse = D1 ('MetaData "AdminSetUserPasswordResponse" "Amazonka.CognitoIdentityProvider.AdminSetUserPassword" "libZSservicesZSamazonka-cognito-idpZSamazonka-cognito-idp" 'False) (C1 ('MetaCons "AdminSetUserPasswordResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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