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

Class: Aws::EMR::Types::InstanceResizePolicy

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

{
  instances_to_terminate: ["InstanceId"],
  instances_to_protect: ["InstanceId"],
  instance_termination_timeout: 1,
}

Custom policy for requesting termination protection or termination of specific instances when shrinking an instance group.

Instance Attribute Summary collapse

Instance Attribute Details

#instance_termination_timeoutInteger

Decommissioning timeout override for the specific list of instances to be terminated.

Returns:

  • (Integer)


2576
2577
2578
2579
2580
2581
# File 'gems/aws-sdk-emr/lib/aws-sdk-emr/types.rb', line 2576

class InstanceResizePolicy < Struct.new(
  :instances_to_terminate,
  :instances_to_protect,
  :instance_termination_timeout)
  include Aws::Structure
end

#instances_to_protectArray<String>

Specific list of instances to be protected when shrinking an instance group.

Returns:

  • (Array<String>)


2576
2577
2578
2579
2580
2581
# File 'gems/aws-sdk-emr/lib/aws-sdk-emr/types.rb', line 2576

class InstanceResizePolicy < Struct.new(
  :instances_to_terminate,
  :instances_to_protect,
  :instance_termination_timeout)
  include Aws::Structure
end

#instances_to_terminateArray<String>

Specific list of instances to be terminated when shrinking an instance group.

Returns:

  • (Array<String>)


2576
2577
2578
2579
2580
2581
# File 'gems/aws-sdk-emr/lib/aws-sdk-emr/types.rb', line 2576

class InstanceResizePolicy < Struct.new(
  :instances_to_terminate,
  :instances_to_protect,
  :instance_termination_timeout)
  include Aws::Structure
end