Deletes the specified policy associated with the specified user.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
|
Required |
Name of the user the policy is associated with. [Constraints: The value must be between 1 and 128 characters, and must match the following regular expression pattern: |
|
|
|
Required |
Name of the policy document to delete. [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
Delete a user policy.
// Instantiate the class
$iam = new AmazonIAM();
$response = $iam->delete_user_policy('johndoe2', 'user-policy');
// Success?
var_dump($response->isOK());
Result:
bool(true)
Related Methods
Source
Method defined in services/iam.class.php | Toggle source view (8 lines) | View on GitHub

