CfnAutoScalingInstanceRefreshPreferences Struct
Preferences for the AutoScalingInstanceRefresh update policy.
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 cfnAutoScalingInstanceRefreshPreferences: cdk.CfnAutoScalingInstanceRefreshPreferences = {
alarmSpecification: {
alarms: ['alarms'],
},
bakeTime: 123,
checkpointDelay: 123,
checkpointPercentages: [123],
instanceWarmup: 123,
maxHealthyPercentage: 123,
minHealthyPercentage: 123,
scaleInProtectedInstances: 'scaleInProtectedInstances',
skipMatching: false,
standbyInstances: 'standbyInstances',
};
Properties
alarmSpecificationoptionalCfnAutoScalingInstanceRefreshAlarmSpecificationalarm_specificationoptionalCfnAutoScalingInstanceRefreshAlarmSpecificationalarmSpecificationoptionalCfnAutoScalingInstanceRefreshAlarmSpecificationAlarmSpecificationoptionalCfnAutoScalingInstanceRefreshAlarmSpecificationAlarmSpecificationoptionalCfnAutoScalingInstanceRefreshAlarmSpecification#If any alarm goes into ALARM state, the instance refresh fails.
bakeTimeoptionalnumberbake_timeoptionalint | floatbakeTimeoptionalNumberBakeTimeoptionaldoubleBakeTimeoptional*float64= 0#checkpointDelayoptionalnumbercheckpoint_delayoptionalint | floatcheckpointDelayoptionalNumberCheckpointDelayoptionaldoubleCheckpointDelayoptional*float64#Default: 3600 seconds (1 hour), applied only when checkpointPercentages is set
checkpointPercentagesoptionalnumber[]checkpoint_percentagesoptionaltyping.List[int | float]checkpointPercentagesoptionalList<Number>CheckpointPercentagesoptionaldouble[]CheckpointPercentagesoptional*[]*float64#Default: no checkpoints
Each number is a percentage of the total number of instances in the group. When the percentage of instances that have been replaced reaches a checkpoint, the refresh waits for the configured checkpoint delay before continuing.
instanceWarmupoptionalnumberinstance_warmupoptionalint | floatinstanceWarmupoptionalNumberInstanceWarmupoptionaldoubleInstanceWarmupoptional*float64#Default: the group's DefaultInstanceWarmup if defined; otherwise the group's HealthCheckGracePeriod
maxHealthyPercentageoptionalnumbermax_healthy_percentageoptionalint | floatmaxHealthyPercentageoptionalNumberMaxHealthyPercentageoptionaldoubleMaxHealthyPercentageoptional*float64#Default: the value set in the Auto Scaling group's instance maintenance policy, if defined; otherwise 110 when the strategy is Rolling, or 100 when the strategy is ReplaceRootVolume
Used to control batch size.
minHealthyPercentageoptionalnumbermin_healthy_percentageoptionalint | floatminHealthyPercentageoptionalNumberMinHealthyPercentageoptionaldoubleMinHealthyPercentageoptional*float64#Default: the value set in the Auto Scaling group's instance maintenance policy, if defined; otherwise 100 when the strategy is Rolling, or 90 when the strategy is ReplaceRootVolume
scaleInProtectedInstancesoptionalstringscale_in_protected_instancesoptionalstrscaleInProtectedInstancesoptionalStringScaleInProtectedInstancesoptionalstringScaleInProtectedInstancesoptional*string= 'Wait'#skipMatchingoptionalbooleanskip_matchingoptionalboolskipMatchingoptionalBooleanSkipMatchingoptionalboolSkipMatchingoptional*bool= true#If true, instances that already match the desired configuration are not replaced.
standbyInstancesoptionalstringstandby_instancesoptionalstrstandbyInstancesoptionalStringStandbyInstancesoptionalstringStandbyInstancesoptional*string= 'Wait'#