Skip to content
v2.275.0

SpotMaintenanceStrategiesProperty Struct ​

The strategies for managing your Spot Instances that are at an elevated risk of being interrupted.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const spotMaintenanceStrategiesProperty: ec2.CfnSpotFleet.SpotMaintenanceStrategiesProperty = {
  capacityRebalance: {
    replacementStrategy: 'replacementStrategy',
    terminationDelay: 123,
  },
};

Properties ​

capacityRebalanceoptionalIResolvable | CfnSpotFleet.SpotCapacityRebalancePropertycapacity_rebalanceoptionaltyping.Union[IResolvable, SpotCapacityRebalanceProperty]capacityRebalanceoptionalIResolvableCapacityRebalanceoptionalIResolvableCapacityRebalanceoptionalinterface{}#
The Spot Instance replacement strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an elevated risk of being interrupted.

For more information, see Capacity rebalancing in the Amazon EC2 User Guide .