aws-cdk-lib.aws_autoscaling.UpdatePolicy

class UpdatePolicy

LanguageType name
.NETAmazon.CDK.AWS.AutoScaling.UpdatePolicy
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsautoscaling#UpdatePolicy
Javasoftware.amazon.awscdk.services.autoscaling.UpdatePolicy
Pythonaws_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

NameDescription
static replacingUpdate()Create a new AutoScalingGroup and switch over to it.
static rollingUpdate(options?)Replace the instances in the AutoScalingGroup one by one, or in batches.

static replacingUpdate()

public static replacingUpdate(): UpdatePolicy

Returns

  • UpdatePolicy

Create a new AutoScalingGroup and switch over to it.


static rollingUpdate(options?)

public static rollingUpdate(options?: RollingUpdateOptions): UpdatePolicy

Parameters

  • options RollingUpdateOptions

Returns

  • UpdatePolicy

Replace the instances in the AutoScalingGroup one by one, or in batches.