Class: AWSCDK::EMR::CfnCluster::InstanceFleetResizingSpecificationsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EMR::CfnCluster::InstanceFleetResizingSpecificationsProperty
- Defined in:
- emr/cfn_cluster.rb
Overview
The resize specification for On-Demand and Spot Instances in the fleet.
Instance Attribute Summary collapse
-
#on_demand_resize_specification ⇒ AWSCDK::IResolvable, ...
readonly
The resize specification for On-Demand Instances in the instance fleet, which contains the allocation strategy, capacity reservation options, and the resize timeout period.
-
#spot_resize_specification ⇒ AWSCDK::IResolvable, ...
readonly
The resize specification for Spot Instances in the instance fleet, which contains the allocation strategy and the resize timeout period.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(on_demand_resize_specification: nil, spot_resize_specification: nil) ⇒ InstanceFleetResizingSpecificationsProperty
constructor
A new instance of InstanceFleetResizingSpecificationsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(on_demand_resize_specification: nil, spot_resize_specification: nil) ⇒ InstanceFleetResizingSpecificationsProperty
Returns a new instance of InstanceFleetResizingSpecificationsProperty.
1651 1652 1653 1654 1655 1656 |
# File 'emr/cfn_cluster.rb', line 1651 def initialize(on_demand_resize_specification: nil, spot_resize_specification: nil) @on_demand_resize_specification = on_demand_resize_specification.is_a?(Hash) ? ::AWSCDK::EMR::CfnCluster::OnDemandResizingSpecificationProperty.new(**on_demand_resize_specification.transform_keys(&:to_sym)) : on_demand_resize_specification Jsii::Type.check_type(@on_demand_resize_specification, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lbXIuQ2ZuQ2x1c3Rlci5PbkRlbWFuZFJlc2l6aW5nU3BlY2lmaWNhdGlvblByb3BlcnR5In1dfX0=")), "onDemandResizeSpecification") unless @on_demand_resize_specification.nil? @spot_resize_specification = spot_resize_specification.is_a?(Hash) ? ::AWSCDK::EMR::CfnCluster::SpotResizingSpecificationProperty.new(**spot_resize_specification.transform_keys(&:to_sym)) : spot_resize_specification Jsii::Type.check_type(@spot_resize_specification, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lbXIuQ2ZuQ2x1c3Rlci5TcG90UmVzaXppbmdTcGVjaWZpY2F0aW9uUHJvcGVydHkifV19fQ==")), "spotResizeSpecification") unless @spot_resize_specification.nil? end |
Instance Attribute Details
#on_demand_resize_specification ⇒ AWSCDK::IResolvable, ... (readonly)
The resize specification for On-Demand Instances in the instance fleet, which contains the allocation strategy, capacity reservation options, and the resize timeout period.
1662 1663 1664 |
# File 'emr/cfn_cluster.rb', line 1662 def on_demand_resize_specification @on_demand_resize_specification end |
#spot_resize_specification ⇒ AWSCDK::IResolvable, ... (readonly)
The resize specification for Spot Instances in the instance fleet, which contains the allocation strategy and the resize timeout period.
1667 1668 1669 |
# File 'emr/cfn_cluster.rb', line 1667 def spot_resize_specification @spot_resize_specification end |
Class Method Details
.jsii_properties ⇒ Object
1669 1670 1671 1672 1673 1674 |
# File 'emr/cfn_cluster.rb', line 1669 def self.jsii_properties { :on_demand_resize_specification => "onDemandResizeSpecification", :spot_resize_specification => "spotResizeSpecification", } end |
Instance Method Details
#to_jsii ⇒ Object
1676 1677 1678 1679 1680 1681 1682 1683 |
# File 'emr/cfn_cluster.rb', line 1676 def to_jsii result = {} result.merge!({ "onDemandResizeSpecification" => @on_demand_resize_specification, "spotResizeSpecification" => @spot_resize_specification, }) result.compact end |