Suspends Auto Scaling processes for an Auto Scaling group. To suspend specific process types,
specify them by name with the ScalingProcesses.member.N
parameter. To suspend all
process types, omit the ScalingProcesses.member.N
parameter.
Suspending either of the two primary process types, Launch
or
Terminate
, can prevent other process types from functioning properly. For more
information about processes and their dependencies, see ProcessType
.
To resume processes that have been suspended, use ResumeProcesses
.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The name or Amazon Resource Name (ARN) 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
Suspend autoscaling processes.
// Instantiate the class $as = new AmazonAS(); $response = $as->suspend_processes('my-scaling-group', array( 'ScalingProcesses' => array( 'ReplaceUnhealthy', 'HealthCheck', 'ScheduledActions' ) )); // Success? var_dump($response->isOK());Result:
bool(true)
Related Methods
Source
Method defined in services/as.class.php | Toggle source view (16 lines) | View on GitHub