amazonka-cognito-idp-2.0: Amazon Cognito Identity Provider SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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 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

Creating a Request

data AdminSetUserPassword Source #

See: newAdminSetUserPassword smart constructor.

Constructors

AdminSetUserPassword' 

Fields

Instances

Instances details
ToJSON AdminSetUserPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.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

AWSRequest AdminSetUserPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserPassword

Associated Types

type AWSResponse AdminSetUserPassword #

Generic AdminSetUserPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserPassword

Associated Types

type Rep AdminSetUserPassword :: Type -> Type #

Show AdminSetUserPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserPassword

NFData AdminSetUserPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserPassword

Methods

rnf :: AdminSetUserPassword -> () #

Eq AdminSetUserPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserPassword

Hashable AdminSetUserPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserPassword

type AWSResponse 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" "amazonka-cognito-idp-2.0-D1ERgMvEVPG9z8cOLXdU2" '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)))))

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.

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.

Destructuring the Response

data AdminSetUserPasswordResponse Source #

See: newAdminSetUserPasswordResponse smart constructor.

Constructors

AdminSetUserPasswordResponse' 

Fields

Instances

Instances details
Generic AdminSetUserPasswordResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserPassword

Associated Types

type Rep AdminSetUserPasswordResponse :: Type -> Type #

Read AdminSetUserPasswordResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserPassword

Show AdminSetUserPasswordResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserPassword

NFData AdminSetUserPasswordResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserPassword

Eq 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" "amazonka-cognito-idp-2.0-D1ERgMvEVPG9z8cOLXdU2" '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