Class: AWSCDK::EMR::CfnInstanceFleetConfig::InstanceFleetResizingSpecificationsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
emr/cfn_instance_fleet_config.rb

Overview

The resize specification for On-Demand and Spot Instances in the fleet.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(on_demand_resize_specification: nil, spot_resize_specification: nil) ⇒ InstanceFleetResizingSpecificationsProperty

Returns a new instance of InstanceFleetResizingSpecificationsProperty.

Parameters:



790
791
792
793
794
795
# File 'emr/cfn_instance_fleet_config.rb', line 790

def initialize(on_demand_resize_specification: nil, spot_resize_specification: nil)
  @on_demand_resize_specification = on_demand_resize_specification.is_a?(Hash) ? ::AWSCDK::EMR::CfnInstanceFleetConfig::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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lbXIuQ2ZuSW5zdGFuY2VGbGVldENvbmZpZy5PbkRlbWFuZFJlc2l6aW5nU3BlY2lmaWNhdGlvblByb3BlcnR5In1dfX0=")), "onDemandResizeSpecification") unless @on_demand_resize_specification.nil?
  @spot_resize_specification = spot_resize_specification.is_a?(Hash) ? ::AWSCDK::EMR::CfnInstanceFleetConfig::SpotResizingSpecificationProperty.new(**spot_resize_specification.transform_keys(&:to_sym)) : spot_resize_specification
  Jsii::Type.check_type(@spot_resize_specification, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lbXIuQ2ZuSW5zdGFuY2VGbGVldENvbmZpZy5TcG90UmVzaXppbmdTcGVjaWZpY2F0aW9uUHJvcGVydHkifV19fQ==")), "spotResizeSpecification") unless @spot_resize_specification.nil?
end

Instance Attribute Details

#on_demand_resize_specificationAWSCDK::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.



801
802
803
# File 'emr/cfn_instance_fleet_config.rb', line 801

def on_demand_resize_specification
  @on_demand_resize_specification
end

#spot_resize_specificationAWSCDK::IResolvable, ... (readonly)

The resize specification for Spot Instances in the instance fleet, which contains the allocation strategy and the resize timeout period.



806
807
808
# File 'emr/cfn_instance_fleet_config.rb', line 806

def spot_resize_specification
  @spot_resize_specification
end

Class Method Details

.jsii_propertiesObject



808
809
810
811
812
813
# File 'emr/cfn_instance_fleet_config.rb', line 808

def self.jsii_properties
  {
    :on_demand_resize_specification => "onDemandResizeSpecification",
    :spot_resize_specification => "spotResizeSpecification",
  }
end

Instance Method Details

#to_jsiiObject



815
816
817
818
819
820
821
822
# File 'emr/cfn_instance_fleet_config.rb', line 815

def to_jsii
  result = {}
  result.merge!({
    "onDemandResizeSpecification" => @on_demand_resize_specification,
    "spotResizeSpecification" => @spot_resize_specification,
  })
  result.compact
end