interface InstanceFleetProvisioningSpecificationsProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.StepFunctions.Tasks.EmrCreateCluster.InstanceFleetProvisioningSpecificationsProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctionstasks#EmrCreateCluster_InstanceFleetProvisioningSpecificationsProperty |
Java | software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.InstanceFleetProvisioningSpecificationsProperty |
Python | aws_cdk.aws_stepfunctions_tasks.EmrCreateCluster.InstanceFleetProvisioningSpecificationsProperty |
TypeScript (source) | aws-cdk-lib » aws_stepfunctions_tasks » EmrCreateCluster » InstanceFleetProvisioningSpecificationsProperty |
The launch specification for On-Demand and Spot instances in the fleet, which determines the defined duration and provisioning timeout behavior, and 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 and Spot instance allocation strategies are available in Amazon EMR releases 5.12.1 and later.
See also: https://docs.aws.amazon.com/emr/latest/APIReference/API_InstanceFleetProvisioningSpecifications.html
Example
new tasks.EmrCreateCluster(this, 'OnDemandSpecification', {
instances: {
instanceFleets: [{
instanceFleetType: tasks.EmrCreateCluster.InstanceRoleType.MASTER,
launchSpecifications: {
onDemandSpecification: {
allocationStrategy: tasks.EmrCreateCluster.OnDemandAllocationStrategy.LOWEST_PRICE,
},
},
}],
},
name: 'OnDemandCluster',
integrationPattern: sfn.IntegrationPattern.RUN_JOB,
});
new tasks.EmrCreateCluster(this, 'SpotSpecification', {
instances: {
instanceFleets: [{
instanceFleetType: tasks.EmrCreateCluster.InstanceRoleType.MASTER,
launchSpecifications: {
spotSpecification: {
allocationStrategy: tasks.EmrCreateCluster.SpotAllocationStrategy.CAPACITY_OPTIMIZED,
timeoutAction: tasks.EmrCreateCluster.SpotTimeoutAction.TERMINATE_CLUSTER,
timeout: Duration.minutes(5),
},
},
}],
},
name: 'SpotCluster',
integrationPattern: sfn.IntegrationPattern.RUN_JOB,
});
Properties
Name | Type | Description |
---|---|---|
on | On | The launch specification for On-Demand Instances in the instance fleet, which determines the allocation strategy. |
spot | Spot | The launch specification for Spot instances in the fleet, which determines the defined duration and provisioning timeout behavior. |
onDemandSpecification?
Type:
On
(optional, default: no on-demand specification)
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.
spotSpecification?
Type:
Spot
(optional, default: no spot specification)
The launch specification for Spot instances in the fleet, which determines the defined duration and provisioning timeout behavior.