interface InstanceFleetConfigProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.StepFunctions.Tasks.EmrCreateCluster.InstanceFleetConfigProperty |
Java | software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.InstanceFleetConfigProperty |
Python | aws_cdk.aws_stepfunctions_tasks.EmrCreateCluster.InstanceFleetConfigProperty |
TypeScript (source) | @aws-cdk/aws-stepfunctions-tasks » EmrCreateCluster » InstanceFleetConfigProperty |
The configuration that defines an instance fleet.
See also: https://docs.aws.amazon.com/emr/latest/APIReference/API_InstanceFleetConfig.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as stepfunctions_tasks from '@aws-cdk/aws-stepfunctions-tasks';
import * as cdk from '@aws-cdk/core';
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.GP2,
// the properties below are optional
iops: 123,
},
// the properties below are optional
volumesPerInstance: 123,
}],
ebsOptimized: false,
},
weightedCapacity: 123,
}],
launchSpecifications: {
spotSpecification: {
timeoutAction: stepfunctions_tasks.EmrCreateCluster.SpotTimeoutAction.SWITCH_TO_ON_DEMAND,
timeoutDurationMinutes: 123,
// the properties below are optional
allocationStrategy: stepfunctions_tasks.EmrCreateCluster.SpotAllocationStrategy.CAPACITY_OPTIMIZED,
blockDurationMinutes: 123,
},
},
name: 'name',
targetOnDemandCapacity: 123,
targetSpotCapacity: 123,
};
Properties
Name | Type | Description |
---|---|---|
instance | Instance | The node type that the instance fleet hosts. |
instance | Instance [] | The instance type configurations that define the EC2 instances in the instance fleet. |
launch | Instance | The launch specification for the instance fleet. |
name? | string | The friendly name of the instance fleet. |
target | number | The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision. |
target | number | The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision. |
instanceFleetType
Type:
Instance
The node type that the instance fleet hosts.
Valid values are MASTER,CORE,and TASK.
instanceTypeConfigs?
Type:
Instance
[]
(optional, default: No instanceTpeConfigs)
The instance type configurations that define the EC2 instances in the instance fleet.
launchSpecifications?
Type:
Instance
(optional, default: No launchSpecifications)
The launch specification for the instance fleet.
name?
Type:
string
(optional, default: No name)
The friendly name of the instance fleet.
targetOnDemandCapacity?
Type:
number
(optional, default: No targetOnDemandCapacity)
The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
targetSpotCapacity?
Type:
number
(optional, default: No targetSpotCapacity)
The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.