libZSservicesZSamazonka-iamZSamazonka-iam
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.IAM.ChangePassword

Description

Changes the password of the IAM user who is calling this operation. This operation can be performed using the CLI, the Amazon Web Services API, or the My Security Credentials page in the Amazon Web Services Management Console. The Amazon Web Services account root user password is not affected by this operation.

Use UpdateLoginProfile to use the CLI, the Amazon Web Services API, or the Users page in the IAM console to change the password for any IAM user. For more information about modifying passwords, see Managing passwords in the IAM User Guide.

Synopsis

Creating a Request

data ChangePassword Source #

See: newChangePassword smart constructor.

Constructors

ChangePassword' 

Fields

  • oldPassword :: Sensitive Text

    The IAM user's current password.

  • newPassword' :: Sensitive Text

    The new password. The new password must conform to the Amazon Web Services account's password policy, if one exists.

    The regex pattern that is used to validate this parameter is a string of characters. That string can include almost any printable ASCII character from the space (\u0020) through the end of the ASCII character range (\u00FF). You can also include the tab (\u0009), line feed (\u000A), and carriage return (\u000D) characters. Any of these characters are valid in a password. However, many tools, such as the Amazon Web Services Management Console, might restrict the ability to type certain characters because they have special meaning within that tool.

Instances

Instances details
Eq ChangePassword Source # 
Instance details

Defined in Amazonka.IAM.ChangePassword

Show ChangePassword Source # 
Instance details

Defined in Amazonka.IAM.ChangePassword

Generic ChangePassword Source # 
Instance details

Defined in Amazonka.IAM.ChangePassword

Associated Types

type Rep ChangePassword :: Type -> Type #

NFData ChangePassword Source # 
Instance details

Defined in Amazonka.IAM.ChangePassword

Methods

rnf :: ChangePassword -> () #

Hashable ChangePassword Source # 
Instance details

Defined in Amazonka.IAM.ChangePassword

AWSRequest ChangePassword Source # 
Instance details

Defined in Amazonka.IAM.ChangePassword

Associated Types

type AWSResponse ChangePassword #

ToHeaders ChangePassword Source # 
Instance details

Defined in Amazonka.IAM.ChangePassword

ToPath ChangePassword Source # 
Instance details

Defined in Amazonka.IAM.ChangePassword

ToQuery ChangePassword Source # 
Instance details

Defined in Amazonka.IAM.ChangePassword

type Rep ChangePassword Source # 
Instance details

Defined in Amazonka.IAM.ChangePassword

type Rep ChangePassword = D1 ('MetaData "ChangePassword" "Amazonka.IAM.ChangePassword" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "ChangePassword'" 'PrefixI 'True) (S1 ('MetaSel ('Just "oldPassword") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text)) :*: S1 ('MetaSel ('Just "newPassword'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text))))
type AWSResponse ChangePassword Source # 
Instance details

Defined in Amazonka.IAM.ChangePassword

newChangePassword Source #

Create a value of ChangePassword 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:oldPassword:ChangePassword', changePassword_oldPassword - The IAM user's current password.

$sel:newPassword':ChangePassword', changePassword_newPassword - The new password. The new password must conform to the Amazon Web Services account's password policy, if one exists.

The regex pattern that is used to validate this parameter is a string of characters. That string can include almost any printable ASCII character from the space (\u0020) through the end of the ASCII character range (\u00FF). You can also include the tab (\u0009), line feed (\u000A), and carriage return (\u000D) characters. Any of these characters are valid in a password. However, many tools, such as the Amazon Web Services Management Console, might restrict the ability to type certain characters because they have special meaning within that tool.

Request Lenses

changePassword_oldPassword :: Lens' ChangePassword Text Source #

The IAM user's current password.

changePassword_newPassword :: Lens' ChangePassword Text Source #

The new password. The new password must conform to the Amazon Web Services account's password policy, if one exists.

The regex pattern that is used to validate this parameter is a string of characters. That string can include almost any printable ASCII character from the space (\u0020) through the end of the ASCII character range (\u00FF). You can also include the tab (\u0009), line feed (\u000A), and carriage return (\u000D) characters. Any of these characters are valid in a password. However, many tools, such as the Amazon Web Services Management Console, might restrict the ability to type certain characters because they have special meaning within that tool.

Destructuring the Response

data ChangePasswordResponse Source #

See: newChangePasswordResponse smart constructor.

Instances

Instances details
Eq ChangePasswordResponse Source # 
Instance details

Defined in Amazonka.IAM.ChangePassword

Read ChangePasswordResponse Source # 
Instance details

Defined in Amazonka.IAM.ChangePassword

Show ChangePasswordResponse Source # 
Instance details

Defined in Amazonka.IAM.ChangePassword

Generic ChangePasswordResponse Source # 
Instance details

Defined in Amazonka.IAM.ChangePassword

Associated Types

type Rep ChangePasswordResponse :: Type -> Type #

NFData ChangePasswordResponse Source # 
Instance details

Defined in Amazonka.IAM.ChangePassword

Methods

rnf :: ChangePasswordResponse -> () #

type Rep ChangePasswordResponse Source # 
Instance details

Defined in Amazonka.IAM.ChangePassword

type Rep ChangePasswordResponse = D1 ('MetaData "ChangePasswordResponse" "Amazonka.IAM.ChangePassword" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "ChangePasswordResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newChangePasswordResponse :: ChangePasswordResponse Source #

Create a value of ChangePasswordResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.