interface SpotMaintenanceStrategiesProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EC2.CfnSpotFleet.SpotMaintenanceStrategiesProperty |
Java | software.amazon.awscdk.services.ec2.CfnSpotFleet.SpotMaintenanceStrategiesProperty |
Python | aws_cdk.aws_ec2.CfnSpotFleet.SpotMaintenanceStrategiesProperty |
TypeScript | @aws-cdk/aws-ec2 » CfnSpotFleet » SpotMaintenanceStrategiesProperty |
The strategies for managing your Spot Instances that are at an elevated risk of being interrupted.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as ec2 from '@aws-cdk/aws-ec2';
const spotMaintenanceStrategiesProperty: ec2.CfnSpotFleet.SpotMaintenanceStrategiesProperty = {
capacityRebalance: {
replacementStrategy: 'replacementStrategy',
terminationDelay: 123,
},
};
Properties
Name | Type | Description |
---|---|---|
capacity | IResolvable | Spot | 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. |
capacityRebalance?
Type:
IResolvable
|
Spot
(optional)
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 for Linux Instances .