Class: AWSCDK::StepFunctionsTasks::EMRCreateCluster::OnDemandProvisioningSpecificationProperty

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

Overview

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(allocation_strategy:) ⇒ OnDemandProvisioningSpecificationProperty

Returns a new instance of OnDemandProvisioningSpecificationProperty.

Parameters:



2190
2191
2192
2193
# File 'step_functions_tasks/emr_create_cluster.rb', line 2190

def initialize(allocation_strategy:)
  @allocation_strategy = allocation_strategy
  Jsii::Type.check_type(@allocation_strategy, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9uc190YXNrcy5FbXJDcmVhdGVDbHVzdGVyLk9uRGVtYW5kQWxsb2NhdGlvblN0cmF0ZWd5In0=")), "allocationStrategy")
end

Instance Attribute Details

#allocation_strategyAWSCDK::StepFunctionsTasks::EMRCreateCluster::OnDemandAllocationStrategy (readonly)

Specifies the strategy to use in launching On-Demand instance fleets.

Currently, the only option is lowest-price (the default), which launches the lowest price first.



2200
2201
2202
# File 'step_functions_tasks/emr_create_cluster.rb', line 2200

def allocation_strategy
  @allocation_strategy
end

Class Method Details

.jsii_propertiesObject



2202
2203
2204
2205
2206
# File 'step_functions_tasks/emr_create_cluster.rb', line 2202

def self.jsii_properties
  {
    :allocation_strategy => "allocationStrategy",
  }
end

Instance Method Details

#to_jsiiObject



2208
2209
2210
2211
2212
2213
2214
# File 'step_functions_tasks/emr_create_cluster.rb', line 2208

def to_jsii
  result = {}
  result.merge!({
    "allocationStrategy" => @allocation_strategy,
  })
  result.compact
end