CfnAutoScalingInstanceRefresh

class aws_cdk.CfnAutoScalingInstanceRefresh(*, strategy, preferences=None)

Bases: object

To specify how AWS CloudFormation handles instance refresh for an Auto Scaling group, use the AutoScalingInstanceRefresh update policy.

When properties that trigger an instance refresh change (such as LaunchTemplate or MixedInstancesPolicy), CloudFormation starts an instance refresh to replace instances gradually.

This policy is mutually exclusive with AutoScalingRollingUpdate.

Parameters:
ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk

cfn_auto_scaling_instance_refresh = cdk.CfnAutoScalingInstanceRefresh(
    strategy="strategy",

    # the properties below are optional
    preferences=cdk.CfnAutoScalingInstanceRefreshPreferences(
        alarm_specification=cdk.CfnAutoScalingInstanceRefreshAlarmSpecification(
            alarms=["alarms"]
        ),
        bake_time=123,
        checkpoint_delay=123,
        checkpoint_percentages=[123],
        instance_warmup=123,
        max_healthy_percentage=123,
        min_healthy_percentage=123,
        scale_in_protected_instances="scaleInProtectedInstances",
        skip_matching=False,
        standby_instances="standbyInstances"
    )
)

Attributes

preferences

The preferences for the instance refresh.

strategy

The strategy to use for the instance refresh.