interface SpotOptionsProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.PCS.CfnComputeNodeGroupPropsMixin.SpotOptionsProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awspcs#CfnComputeNodeGroupPropsMixin_SpotOptionsProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.pcs.CfnComputeNodeGroupPropsMixin.SpotOptionsProperty |
Python | aws_cdk.cfn_property_mixins.aws_pcs.CfnComputeNodeGroupPropsMixin.SpotOptionsProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_pcs » 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 { aws_pcs as pcs } from '@aws-cdk/cfn-property-mixins';
const spotOptionsProperty: pcs.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