Deletes a policy created by PutScalingPolicy
.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The name or PolicyARN of the policy you want to delete. [Constraints: The value must be between 1 and 1600 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 an autoscaling policy.
// Instantiate the class $as = new AmazonAS(); $response = $as->delete_policy('my-scaling-policy', array( 'AutoScalingGroupName' => 'my-scaling-group', )); // Success? var_dump($response->isOK());Result:
bool(true)
Related Methods
Source
Method defined in services/as.class.php | Toggle source view (7 lines) | View on GitHub