Skip to content
v2.275.0

OnDemandProvisioningSpecificationProperty Struct ​

The launch specification for On-Demand Instances in the instance fleet, which determines the allocation strategy.

The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions. On-Demand Instances allocation strategy is available in Amazon EMR releases 5.12.1 and later.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_emr as emr } from 'aws-cdk-lib';
const onDemandProvisioningSpecificationProperty: emr.CfnInstanceFleetConfig.OnDemandProvisioningSpecificationProperty = {
  allocationStrategy: 'allocationStrategy',

  // the properties below are optional
  capacityReservationOptions: {
    capacityReservationPreference: 'capacityReservationPreference',
    capacityReservationResourceGroupArn: 'capacityReservationResourceGroupArn',
    usageStrategy: 'usageStrategy',
  },
};

Properties ​

allocationStrategystringallocation_strategystrallocationStrategyStringAllocationStrategystringAllocationStrategy*stringrequired#
Specifies the strategy to use in launching On-Demand instance fleets.
notes

Available options are lowest-price and prioritized . lowest-price specifies to launch the instances with the lowest price first, and prioritized specifies that Amazon EMR should launch the instances with the highest priority first. The default is lowest-price .

capacityReservationOptionsoptionalIResolvable | CfnInstanceFleetConfig.OnDemandCapacityReservationOptionsPropertycapacity_reservation_optionsoptionaltyping.Union[IResolvable, OnDemandCapacityReservationOptionsProperty]capacityReservationOptionsoptionalIResolvableCapacityReservationOptionsoptionalIResolvableCapacityReservationOptionsoptionalinterface{}#
The launch specification for On-Demand instances in the instance fleet, which determines the allocation strategy.