You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::EMR::Types::InstanceGroupModifyConfig

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 InstanceGroupModifyConfig data as a hash:

{
  instance_group_id: "XmlStringMaxLen256", # required
  instance_count: 1,
  ec2_instance_ids_to_terminate: ["InstanceId"],
  shrink_policy: {
    decommission_timeout: 1,
    instance_resize_policy: {
      instances_to_terminate: ["InstanceId"],
      instances_to_protect: ["InstanceId"],
      instance_termination_timeout: 1,
    },
  },
  configurations: [
    {
      classification: "String",
      configurations: {
        # recursive ConfigurationList
      },
      properties: {
        "String" => "String",
      },
    },
  ],
}

Modify the size or configurations of an instance group.

Instance Attribute Summary collapse

Instance Attribute Details

#configurationsArray<Types::Configuration>

A list of new or modified configurations to apply for an instance group.

Returns:



2631
2632
2633
2634
2635
2636
2637
2638
# File 'gems/aws-sdk-emr/lib/aws-sdk-emr/types.rb', line 2631

class InstanceGroupModifyConfig < Struct.new(
  :instance_group_id,
  :instance_count,
  :ec2_instance_ids_to_terminate,
  :shrink_policy,
  :configurations)
  include Aws::Structure
end

#ec2_instance_ids_to_terminateArray<String>

The EC2 InstanceIds to terminate. After you terminate the instances, the instance group will not return to its original requested size.

Returns:

  • (Array<String>)


2631
2632
2633
2634
2635
2636
2637
2638
# File 'gems/aws-sdk-emr/lib/aws-sdk-emr/types.rb', line 2631

class InstanceGroupModifyConfig < Struct.new(
  :instance_group_id,
  :instance_count,
  :ec2_instance_ids_to_terminate,
  :shrink_policy,
  :configurations)
  include Aws::Structure
end

#instance_countInteger

Target size for the instance group.

Returns:

  • (Integer)


2631
2632
2633
2634
2635
2636
2637
2638
# File 'gems/aws-sdk-emr/lib/aws-sdk-emr/types.rb', line 2631

class InstanceGroupModifyConfig < Struct.new(
  :instance_group_id,
  :instance_count,
  :ec2_instance_ids_to_terminate,
  :shrink_policy,
  :configurations)
  include Aws::Structure
end

#instance_group_idString

Unique ID of the instance group to expand or shrink.

Returns:

  • (String)


2631
2632
2633
2634
2635
2636
2637
2638
# File 'gems/aws-sdk-emr/lib/aws-sdk-emr/types.rb', line 2631

class InstanceGroupModifyConfig < Struct.new(
  :instance_group_id,
  :instance_count,
  :ec2_instance_ids_to_terminate,
  :shrink_policy,
  :configurations)
  include Aws::Structure
end

#shrink_policyTypes::ShrinkPolicy

Policy for customizing shrink operations.

Returns:



2631
2632
2633
2634
2635
2636
2637
2638
# File 'gems/aws-sdk-emr/lib/aws-sdk-emr/types.rb', line 2631

class InstanceGroupModifyConfig < Struct.new(
  :instance_group_id,
  :instance_count,
  :ec2_instance_ids_to_terminate,
  :shrink_policy,
  :configurations)
  include Aws::Structure
end