Skip to content

Commit

Permalink
chore: allocationStrategy for on-demand to required
Browse files Browse the repository at this point in the history
  • Loading branch information
go-to-k committed Nov 2, 2023
1 parent c392bcf commit 6510ab0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -638,10 +638,8 @@ export namespace EmrCreateCluster {
* Specifies the strategy to use in launching On-Demand instance fleets.
*
* Currently, the only option is lowest-price (the default), which launches the lowest price first.
*
* @default - lowest-price
*/
readonly allocationStrategy?: OnDemandAllocationStrategy;
readonly allocationStrategy: OnDemandAllocationStrategy;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,7 @@ function OnDemandProvisioningSpecificationPropertyToJson(property: EmrCreateClus
return undefined;
}
return {
AllocationStrategy: cdk.stringToCloudFormation(
property.allocationStrategy ?? EmrCreateCluster.OnDemandAllocationStrategy.LOWEST_PRICE,
),
AllocationStrategy: cdk.stringToCloudFormation(property.allocationStrategy),
};
}

Expand Down

0 comments on commit 6510ab0

Please sign in to comment.