class UpdatePolicy
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.AutoScaling.UpdatePolicy |
Java | software.amazon.awscdk.services.autoscaling.UpdatePolicy |
Python | aws_cdk.aws_autoscaling.UpdatePolicy |
TypeScript (source) | @aws-cdk/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 * as autoscaling from '@aws-cdk/aws-autoscaling';
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
Java
Python
TypeScript (