Skip to content

Suspend Processes

autoscaling_suspend_processes R Documentation

Suspends the specified auto scaling processes, or all processes, for the specified Auto Scaling group

Description

Suspends the specified auto scaling processes, or all processes, for the specified Auto Scaling group.

If you suspend either the Launch or Terminate process types, it can prevent other process types from functioning properly. For more information, see Suspend and resume Amazon EC2 Auto Scaling processes in the Amazon EC2 Auto Scaling User Guide.

To resume processes that have been suspended, call the resume_processes API.

Usage

autoscaling_suspend_processes(AutoScalingGroupName, ScalingProcesses)

Arguments

AutoScalingGroupName

[required] The name of the Auto Scaling group.

ScalingProcesses

One or more of the following processes:

  • Launch

  • Terminate

  • AddToLoadBalancer

  • AlarmNotification

  • AZRebalance

  • HealthCheck

  • InstanceRefresh

  • ReplaceUnhealthy

  • ScheduledActions

If you omit this property, all processes are specified.

Value

An empty list.

Request syntax

svc$suspend_processes(
  AutoScalingGroupName = "string",
  ScalingProcesses = list(
    "string"
  )
)

Examples

## Not run: 
# This example suspends the specified scaling process for the specified
# Auto Scaling group.
svc$suspend_processes(
  AutoScalingGroupName = "my-auto-scaling-group",
  ScalingProcesses = list(
    "AlarmNotification"
  )
)

## End(Not run)