Class CfnComputeNodeGroupPropsMixin.SpotOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.pcs.CfnComputeNodeGroupPropsMixin.SpotOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnComputeNodeGroupPropsMixin.SpotOptionsProperty>
- Enclosing interface:
CfnComputeNodeGroupPropsMixin.SpotOptionsProperty
@Stability(Stable)
public static final class CfnComputeNodeGroupPropsMixin.SpotOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnComputeNodeGroupPropsMixin.SpotOptionsProperty>
A builder for
CfnComputeNodeGroupPropsMixin.SpotOptionsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocationStrategy(String allocationStrategy) build()Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allocationStrategy
@Stability(Stable) public CfnComputeNodeGroupPropsMixin.SpotOptionsProperty.Builder allocationStrategy(String allocationStrategy) - Parameters:
allocationStrategy- 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 .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnComputeNodeGroupPropsMixin.SpotOptionsProperty>- Returns:
- a new instance of
CfnComputeNodeGroupPropsMixin.SpotOptionsProperty - Throws:
NullPointerException- if any required attribute was not provided
-