Class: Aws::EMR::Types::AddInstanceFleetInput

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-emr/lib/aws-sdk-emr/types.rb

Overview

Note:

When making an API call, you may pass AddInstanceFleetInput data as a hash:

{
  cluster_id: "XmlStringMaxLen256", # required
  instance_fleet: { # required
    name: "XmlStringMaxLen256",
    instance_fleet_type: "MASTER", # required, accepts MASTER, CORE, TASK
    target_on_demand_capacity: 1,
    target_spot_capacity: 1,
    instance_type_configs: [
      {
        instance_type: "InstanceType", # required
        weighted_capacity: 1,
        bid_price: "XmlStringMaxLen256",
        bid_price_as_percentage_of_on_demand_price: 1.0,
        ebs_configuration: {
          ebs_block_device_configs: [
            {
              volume_specification: { # required
                volume_type: "String", # required
                iops: 1,
                size_in_gb: 1, # required
              },
              volumes_per_instance: 1,
            },
          ],
          ebs_optimized: false,
        },
        configurations: [
          {
            classification: "String",
            configurations: {
              # recursive ConfigurationList
            },
            properties: {
              "String" => "String",
            },
          },
        ],
      },
    ],
    launch_specifications: {
      spot_specification: {
        timeout_duration_minutes: 1, # required
        timeout_action: "SWITCH_TO_ON_DEMAND", # required, accepts SWITCH_TO_ON_DEMAND, TERMINATE_CLUSTER
        block_duration_minutes: 1,
        allocation_strategy: "capacity-optimized", # accepts capacity-optimized
      },
      on_demand_specification: {
        allocation_strategy: "lowest-price", # required, accepts lowest-price
      },
    },
  },
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#cluster_idString

The unique identifier of the cluster.

Returns:

  • (String)


79
80
81
82
83
84
# File 'gems/aws-sdk-emr/lib/aws-sdk-emr/types.rb', line 79

class AddInstanceFleetInput < Struct.new(
  :cluster_id,
  :instance_fleet)
  SENSITIVE = []
  include Aws::Structure
end

#instance_fleetTypes::InstanceFleetConfig

Specifies the configuration of the instance fleet.



79
80
81
82
83
84
# File 'gems/aws-sdk-emr/lib/aws-sdk-emr/types.rb', line 79

class AddInstanceFleetInput < Struct.new(
  :cluster_id,
  :instance_fleet)
  SENSITIVE = []
  include Aws::Structure
end