Module: AWSCDK::Autoscaling::TerminationPolicy

Defined in:
autoscaling/termination_policy.rb

Overview

Specifies the termination criteria to apply before Amazon EC2 Auto Scaling chooses an instance for termination.

Constant Summary collapse

ALLOCATION_STRATEGY =
Deprecated.
Note:

Default:

Terminate instances in the Auto Scaling group to align the remaining instances to the allocation strategy for the type of instance that is terminating (either a Spot Instance or an On-Demand Instance).

Jsii::Enum.new("aws-cdk-lib.aws_autoscaling.TerminationPolicy", "ALLOCATION_STRATEGY")
CLOSEST_TO_NEXT_INSTANCE_HOUR =
Deprecated.
Note:

Default:

Terminate instances that are closest to the next billing hour.

Jsii::Enum.new("aws-cdk-lib.aws_autoscaling.TerminationPolicy", "CLOSEST_TO_NEXT_INSTANCE_HOUR")
DEFAULT =
Deprecated.
Note:

Default:

Terminate instances according to the default termination policy.

Jsii::Enum.new("aws-cdk-lib.aws_autoscaling.TerminationPolicy", "DEFAULT")
NEWEST_INSTANCE =
Deprecated.
Note:

Default:

Terminate the newest instance in the group.

Jsii::Enum.new("aws-cdk-lib.aws_autoscaling.TerminationPolicy", "NEWEST_INSTANCE")
OLDEST_INSTANCE =
Deprecated.
Note:

Default:

Terminate the oldest instance in the group.

Jsii::Enum.new("aws-cdk-lib.aws_autoscaling.TerminationPolicy", "OLDEST_INSTANCE")
OLDEST_LAUNCH_CONFIGURATION =
Deprecated.
Note:

Default:

Terminate instances that have the oldest launch configuration.

Jsii::Enum.new("aws-cdk-lib.aws_autoscaling.TerminationPolicy", "OLDEST_LAUNCH_CONFIGURATION")
OLDEST_LAUNCH_TEMPLATE =
Deprecated.
Note:

Default:

Terminate instances that have the oldest launch template.

Jsii::Enum.new("aws-cdk-lib.aws_autoscaling.TerminationPolicy", "OLDEST_LAUNCH_TEMPLATE")
CUSTOM_LAMBDA_FUNCTION =
Deprecated.
Note:

Default:

Terminate instances using custom termination policy with lambda.

If this is specified, you must also supply a value of lambda arn in the terminationPolicyCustomLambdaFunctionArn property.

If there are multiple termination policies specified, the custom termination policy with lambda must be specified first in the order.

Jsii::Enum.new("aws-cdk-lib.aws_autoscaling.TerminationPolicy", "CUSTOM_LAMBDA_FUNCTION")