Updates the password policy settings for the account. For more information about using a password policy, go to Managing an IAM Password Policy.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Update the account password policy.
// Instantiate the class $iam = new AmazonIAM(); $response = $iam->update_account_password_policy(array( 'AllowUsersToChangePassword' => 'true', 'MinimumPasswordLength' => 6, 'RequireSymbols' => 'false', 'RequireNumbers' => 'true', 'RequireUppercaseCharacters' => 'false', 'RequireLowercaseCharacters' => 'true', )); // Success? var_dump($response->isOK());Result:
bool(true)
Source
Method defined in services/iam.class.php | Toggle source view (6 lines) | View on GitHub