InstanceFleetConfigProperty Struct
The configuration that defines an instance fleet.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
import { aws_stepfunctions_tasks as stepfunctions_tasks } from 'aws-cdk-lib';
declare const configurationProperty_: stepfunctions_tasks.EmrCreateCluster.ConfigurationProperty;
declare const size: cdk.Size;
const instanceFleetConfigProperty: stepfunctions_tasks.EmrCreateCluster.InstanceFleetConfigProperty = {
instanceFleetType: stepfunctions_tasks.EmrCreateCluster.InstanceRoleType.MASTER,
// the properties below are optional
instanceTypeConfigs: [{
instanceType: 'instanceType',
// the properties below are optional
bidPrice: 'bidPrice',
bidPriceAsPercentageOfOnDemandPrice: 123,
configurations: [{
classification: 'classification',
configurations: [configurationProperty_],
properties: {
propertiesKey: 'properties',
},
}],
ebsConfiguration: {
ebsBlockDeviceConfigs: [{
volumeSpecification: {
volumeSize: size,
volumeType: stepfunctions_tasks.EmrCreateCluster.EbsBlockDeviceVolumeType.GP3,
// the properties below are optional
iops: 123,
},
// the properties below are optional
volumesPerInstance: 123,
}],
ebsOptimized: false,
},
priority: 123,
weightedCapacity: 123,
}],
launchSpecifications: {
onDemandSpecification: {
allocationStrategy: stepfunctions_tasks.EmrCreateCluster.OnDemandAllocationStrategy.LOWEST_PRICE,
},
spotSpecification: {
timeoutAction: stepfunctions_tasks.EmrCreateCluster.SpotTimeoutAction.SWITCH_TO_ON_DEMAND,
// the properties below are optional
allocationStrategy: stepfunctions_tasks.EmrCreateCluster.SpotAllocationStrategy.CAPACITY_OPTIMIZED,
blockDurationMinutes: 123,
timeout: cdk.Duration.minutes(30),
timeoutDurationMinutes: 123,
},
},
name: 'name',
targetOnDemandCapacity: 123,
targetSpotCapacity: 123,
};
Properties
instanceFleetTypeEmrCreateCluster.InstanceRoleTypeinstance_fleet_typeInstanceRoleTypeinstanceFleetTypeInstanceRoleTypeInstanceFleetTypeInstanceRoleTypeInstanceFleetTypeInstanceRoleTyperequired#Valid values are MASTER,CORE,and TASK.
instanceTypeConfigsEmrCreateCluster.InstanceTypeConfigProperty[]instance_type_configstyping.List[InstanceTypeConfigProperty]instanceTypeConfigsList<InstanceTypeConfigProperty>InstanceTypeConfigsInstanceTypeConfigProperty[]InstanceTypeConfigs*[]InstanceTypeConfigProperty= No instanceTpeConfigs#launchSpecificationsEmrCreateCluster.InstanceFleetProvisioningSpecificationsPropertylaunch_specificationsInstanceFleetProvisioningSpecificationsPropertylaunchSpecificationsInstanceFleetProvisioningSpecificationsPropertyLaunchSpecificationsInstanceFleetProvisioningSpecificationsPropertyLaunchSpecificationsInstanceFleetProvisioningSpecificationsProperty= No launchSpecifications#targetOnDemandCapacitynumbertarget_on_demand_capacityint | floattargetOnDemandCapacityNumberTargetOnDemandCapacitydoubleTargetOnDemandCapacity*float64= No targetOnDemandCapacity#notes
If not specified or set to 0, only Spot Instances are provisioned for the instance fleet using targetSpotCapacity.
At least one of targetSpotCapacity and targetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of targetSpotCapacity and targetOnDemandCapacity can be specified, and its value must be 1.
targetSpotCapacitynumbertarget_spot_capacityint | floattargetSpotCapacityNumberTargetSpotCapacitydoubleTargetSpotCapacity*float64= No targetSpotCapacity#notes
If not specified or set to 0, only On-Demand Instances are provisioned for the instance fleet using targetOnDemandCapacity.
At least one of targetSpotCapacity and targetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of targetSpotCapacity and targetOnDemandCapacity can be specified, and its value must be 1.