interface SpotOptionsProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.PCS.Mixins.CfnComputeNodeGroupPropsMixin.SpotOptionsProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awspcs/mixins#CfnComputeNodeGroupPropsMixin_SpotOptionsProperty |
Java | software.amazon.awscdk.mixins.preview.services.pcs.mixins.CfnComputeNodeGroupPropsMixin.SpotOptionsProperty |
Python | aws_cdk.mixins_preview.aws_pcs.mixins.CfnComputeNodeGroupPropsMixin.SpotOptionsProperty |
TypeScript | @aws-cdk/mixins-preview » aws_pcs » mixins » CfnComputeNodeGroupPropsMixin » SpotOptionsProperty |
Additional configuration when you specify SPOT as the purchaseOption for the CreateComputeNodeGroup API action.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as pcs_mixins } from '@aws-cdk/mixins-preview/aws-pcs';
const spotOptionsProperty: pcs_mixins.CfnComputeNodeGroupPropsMixin.SpotOptionsProperty = {
allocationStrategy: 'allocationStrategy',
};
Properties
| Name | Type | Description |
|---|---|---|
| allocation | string | The Amazon EC2 allocation strategy AWS PCS uses to provision EC2 instances. |
allocationStrategy?
Type:
string
(optional)
The Amazon EC2 allocation strategy AWS PCS uses to provision EC2 instances.
AWS PCS supports lowest price , capacity optimized , and price capacity optimized . For more information, see Use allocation strategies to determine how EC2 Fleet or Spot Fleet fulfills Spot and On-Demand capacity in the Amazon Elastic Compute Cloud User Guide . If you don't provide this option, it defaults to price capacity optimized .

.NET
Go
Java
Python
TypeScript