Changes the password of the IAM user calling ChangePassword
. The root account
password is not affected by this action. For information about modifying passwords, see
Managing Passwords.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
[Constraints: The value must be between 1 and 128 characters, and must match the following regular expression pattern: |
|
|
Required |
[Constraints: The value must be between 1 and 128 characters, and must match the following regular expression pattern: |
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Change the IAM user's password.
// Instantiate the class $iam = new AmazonIAM(array('key' => $access_key, 'secret' => $secret_key)); $response = $iam->change_password('password', 'new-password'); // Success? var_dump($response->isOK());Result:
bool(true)
Source
Method defined in services/iam.class.php | Toggle source view (8 lines) | View on GitHub