Class: AWSCDK::StepFunctionsTasks::EMRCreateCluster::InstanceFleetProvisioningSpecificationsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
step_functions_tasks/emr_create_cluster.rb

Overview

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.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(on_demand_specification: nil, spot_specification: nil) ⇒ InstanceFleetProvisioningSpecificationsProperty

Returns a new instance of InstanceFleetProvisioningSpecificationsProperty.

Parameters:



1458
1459
1460
1461
1462
1463
# File 'step_functions_tasks/emr_create_cluster.rb', line 1458

def initialize(on_demand_specification: nil, spot_specification: nil)
  @on_demand_specification = on_demand_specification.is_a?(Hash) ? ::AWSCDK::StepFunctionsTasks::EMRCreateCluster::OnDemandProvisioningSpecificationProperty.new(**on_demand_specification.transform_keys(&:to_sym)) : on_demand_specification
  Jsii::Type.check_type(@on_demand_specification, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9uc190YXNrcy5FbXJDcmVhdGVDbHVzdGVyLk9uRGVtYW5kUHJvdmlzaW9uaW5nU3BlY2lmaWNhdGlvblByb3BlcnR5In0=")), "onDemandSpecification") unless @on_demand_specification.nil?
  @spot_specification = spot_specification.is_a?(Hash) ? ::AWSCDK::StepFunctionsTasks::EMRCreateCluster::SpotProvisioningSpecificationProperty.new(**spot_specification.transform_keys(&:to_sym)) : spot_specification
  Jsii::Type.check_type(@spot_specification, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9uc190YXNrcy5FbXJDcmVhdGVDbHVzdGVyLlNwb3RQcm92aXNpb25pbmdTcGVjaWZpY2F0aW9uUHJvcGVydHkifQ==")), "spotSpecification") unless @spot_specification.nil?
end

Instance Attribute Details

#on_demand_specificationAWSCDK::StepFunctionsTasks::EMRCreateCluster::OnDemandProvisioningSpecificationProperty? (readonly)

Note:

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.



1472
1473
1474
# File 'step_functions_tasks/emr_create_cluster.rb', line 1472

def on_demand_specification
  @on_demand_specification
end

#spot_specificationAWSCDK::StepFunctionsTasks::EMRCreateCluster::SpotProvisioningSpecificationProperty? (readonly)

Note:

Default: - no spot specification

The launch specification for Spot instances in the fleet, which determines the defined duration and provisioning timeout behavior.



1477
1478
1479
# File 'step_functions_tasks/emr_create_cluster.rb', line 1477

def spot_specification
  @spot_specification
end

Class Method Details

.jsii_propertiesObject



1479
1480
1481
1482
1483
1484
# File 'step_functions_tasks/emr_create_cluster.rb', line 1479

def self.jsii_properties
  {
    :on_demand_specification => "onDemandSpecification",
    :spot_specification => "spotSpecification",
  }
end

Instance Method Details

#to_jsiiObject



1486
1487
1488
1489
1490
1491
1492
1493
# File 'step_functions_tasks/emr_create_cluster.rb', line 1486

def to_jsii
  result = {}
  result.merge!({
    "onDemandSpecification" => @on_demand_specification,
    "spotSpecification" => @spot_specification,
  })
  result.compact
end