class UpdatePolicy
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.AutoScaling.UpdatePolicy |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsautoscaling#UpdatePolicy |
Java | software.amazon.awscdk.services.autoscaling.UpdatePolicy |
Python | aws_cdk.aws_autoscaling.UpdatePolicy |
TypeScript (source) | aws-cdk-lib » aws_autoscaling » UpdatePolicy |
How existing instances should be updated.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_autoscaling as autoscaling } from 'aws-cdk-lib';
const updatePolicy = autoscaling.UpdatePolicy.replacingUpdate();
Initializer
new UpdatePolicy()
Methods
| Name | Description |
|---|---|
| static replacing | Create a new AutoScalingGroup and switch over to it. |
| static rolling | Replace the instances in the AutoScalingGroup one by one, or in batches. |
static replacingUpdate()
public static replacingUpdate(): UpdatePolicy
Returns
Create a new AutoScalingGroup and switch over to it.
static rollingUpdate(options?)
public static rollingUpdate(options?: RollingUpdateOptions): UpdatePolicy
Parameters
- options
RollingUpdate Options
Returns
Replace the instances in the AutoScalingGroup one by one, or in batches.

.NET
Go
Java
Python
TypeScript (