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 |
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
- data ChangePassword = ChangePassword' {}
- newChangePassword :: Text -> Text -> ChangePassword
- changePassword_oldPassword :: Lens' ChangePassword Text
- changePassword_newPassword :: Lens' ChangePassword Text
- data ChangePasswordResponse = ChangePasswordResponse' {
- newChangePasswordResponse :: ChangePasswordResponse
Creating a Request
data ChangePassword Source #
See: newChangePassword
smart constructor.
ChangePassword' | |
|
Instances
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
Eq ChangePasswordResponse Source # | |
Defined in Amazonka.IAM.ChangePassword | |
Read ChangePasswordResponse Source # | |
Show ChangePasswordResponse Source # | |
Defined in Amazonka.IAM.ChangePassword showsPrec :: Int -> ChangePasswordResponse -> ShowS # show :: ChangePasswordResponse -> String # showList :: [ChangePasswordResponse] -> ShowS # | |
Generic ChangePasswordResponse Source # | |
Defined in Amazonka.IAM.ChangePassword type Rep ChangePasswordResponse :: Type -> Type # | |
NFData ChangePasswordResponse Source # | |
Defined in Amazonka.IAM.ChangePassword rnf :: ChangePasswordResponse -> () # | |
type Rep ChangePasswordResponse Source # | |
newChangePasswordResponse :: ChangePasswordResponse Source #
Create a value of ChangePasswordResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.