suspendProcesses
inline suspend fun AutoScalingClient.suspendProcesses(crossinline block: SuspendProcessesRequest.Builder.() -> Unit): SuspendProcessesResponse
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 Suspending and resuming scaling processes in the Amazon EC2 Auto Scaling User Guide.
To resume processes that have been suspended, call the ResumeProcesses API.
Samples
fun main() {
//sampleStart
// This example suspends the specified scaling process for the specified Auto Scaling group.
autoScalingClient.suspendProcesses {
autoScalingGroupName = "my-auto-scaling-group"
scalingProcesses = listOf<String>(
"AlarmNotification"
)
}
//sampleEnd
}