Runs the policy you create for your Auto Scaling group in PutScalingPolicy.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
|
Required |
The name or PolicyARN of the policy you want to run. [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
Execute an autoscaling policy.
// Instantiate the class
$as = new AmazonAS();
$response = $as->execute_policy('my-scaling-policy', array(
'AutoScalingGroupName' => 'my-scaling-group',
'HonorCooldown' => 'false'
));
// 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

