Deletes the specified Auto Scaling group if the group has no instances and no scaling activities in progress.
To remove all instances before calling DeleteAutoScalingGroup, you can call
UpdateAutoScalingGroup to set the minimum and maximum size of the AutoScalingGroup
to zero.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
|
Required |
The name of the Auto Scaling group. [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 auto scaling group.
// Instantiate the class
$as = new AmazonAS();
$response = $as->delete_auto_scaling_group('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

