update_account_password_policy ( $opt )

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

$opt

array

Optional

An associative array of parameters that can have the following keys:

  • MinimumPasswordLength - integer - Optional -
  • RequireSymbols - boolean - Optional -
  • RequireNumbers - boolean - Optional -
  • RequireUppercaseCharacters - boolean - Optional -
  • RequireLowercaseCharacters - boolean - Optional -
  • AllowUsersToChangePassword - boolean - Optional -
  • curlopts - array - Optional - A set of values to pass directly into curl_setopt(), where the key is a pre-defined CURLOPT_* constant.
  • returnCurlHandle - boolean - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.

Returns

Type

Description

CFResponse

A CFResponse object containing a parsed HTTP response.

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

public function update_account_password_policy($opt = null)
{
    if (!$opt) $opt = array();
            
    return $this->authenticate('UpdateAccountPasswordPolicy', $opt);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback