interface CfnAutoScalingInstanceRefresh
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnAutoScalingInstanceRefresh |
Go | github.com/aws/aws-cdk-go/awscdk/v2#CfnAutoScalingInstanceRefresh |
Java | software.amazon.awscdk.CfnAutoScalingInstanceRefresh |
Python | aws_cdk.CfnAutoScalingInstanceRefresh |
TypeScript (source) | aws-cdk-lib » CfnAutoScalingInstanceRefresh |
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.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
const cfnAutoScalingInstanceRefresh: cdk.CfnAutoScalingInstanceRefresh = {
strategy: 'strategy',
// the properties below are optional
preferences: {
alarmSpecification: {
alarms: ['alarms'],
},
bakeTime: 123,
checkpointDelay: 123,
checkpointPercentages: [123],
instanceWarmup: 123,
maxHealthyPercentage: 123,
minHealthyPercentage: 123,
scaleInProtectedInstances: 'scaleInProtectedInstances',
skipMatching: false,
standbyInstances: 'standbyInstances',
},
};
Properties
| Name | Type | Description |
|---|---|---|
| strategy | string | The strategy to use for the instance refresh. |
| preferences? | Cfn | The preferences for the instance refresh. |
strategy
Type:
string
The strategy to use for the instance refresh.
preferences?
Type:
Cfn
(optional)
The preferences for the instance refresh.

.NET
Go
Java
Python
TypeScript (