class UpdatePolicy
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.AutoScaling.UpdatePolicy |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsautoscaling#UpdatePolicy |
![]() | software.amazon.awscdk.services.autoscaling.UpdatePolicy |
![]() | aws_cdk.aws_autoscaling.UpdatePolicy |
![]() | 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
Rolling
Update Options
Returns
Replace the instances in the AutoScalingGroup one by one, or in batches.