Creates a scheduled scaling action for an Auto Scaling group. If you leave a parameter unspecified, the corresponding value remains unchanged in the affected Auto Scaling group.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
|
Required |
The name or ARN of the Auto Scaling group. [Constraints: The value must be between 1 and 1600 characters, and must match the following regular expression pattern: |
|
|
|
Required |
The name of this scaling action. [Constraints: The value must be between 1 and 255 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
Create a scheduled scaling action for an auto scaling group.
// Instantiate the class
$as = new AmazonAS();
$response = $as->put_scheduled_update_group_action('my-scaling-group', 'my-scheduled-action', array(
'Time' => '+10 minutes',
'EndTime' => '+20 minutes',
'MinSize' => 1,
'MaxSize' => 2,
'DesiredCapacity' => 2
));
// Success?
var_dump($response->isOK());
Result:
bool(true)
Changelog
Version |
Description |
|---|---|
|
1.3.7 |
The PutScheduledUpdateGroupAction operation introduced backwards-incompatible changes in the July 2011 update. These changes were accounted for in this version of the SDK. |
Related Methods
Source
Method defined in services/as.class.php | Toggle source view (26 lines) | View on GitHub

