Changes the password of the IAM user calling . The root
account password is not affected by this action. For information about modifying
passwords, see Managing Passwords.
CopyC#
ChangePassword
Declaration Syntax
C# |
public ChangePasswordResponse ChangePassword( ChangePasswordRequest request )
Parameters
- request (ChangePasswordRequest)
- Container for the necessary parameters to execute the ChangePassword service method.
Return Value
The response from the ChangePassword service method, as returned by IdentityManagementService.
Exceptions
Exception | Condition |
---|---|
EntityTemporarilyUnmodifiableException |
The request was rejected because it referenced an entity that is temporarily unmodifiable, such
as a user name that was deleted and then recreated. The error indicates that the request is
likely to succeed if you try again after waiting several minutes. The error message describes
the entity.
|
InvalidUserTypeException |
The request was rejected because the type of user for the transaction was incorrect.
|
LimitExceededException |
The request was rejected because it attempted to create resources beyond the current
AWS account limits. The error message describes the limit exceeded.
|
NoSuchEntityException |
The request was rejected because it referenced an entity that does not exist. The
error message describes the entity.
|
PasswordPolicyViolationException |
The request was rejected because the provided password did not meet the requirements
imposed by the account password policy.
|