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

Class: Aws::EMR::Types::ShrinkPolicy

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

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

Policy for customizing shrink operations. Allows configuration of decommissioning timeout and targeted instance shrinking.

Instance Attribute Summary collapse

Instance Attribute Details

#decommission_timeoutInteger

The desired timeout for decommissioning an instance. Overrides the default YARN decommissioning timeout.

Returns:

  • (Integer)


4861
4862
4863
4864
4865
# File 'gems/aws-sdk-emr/lib/aws-sdk-emr/types.rb', line 4861

class ShrinkPolicy < Struct.new(
  :decommission_timeout,
  :instance_resize_policy)
  include Aws::Structure
end

#instance_resize_policyTypes::InstanceResizePolicy

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



4861
4862
4863
4864
4865
# File 'gems/aws-sdk-emr/lib/aws-sdk-emr/types.rb', line 4861

class ShrinkPolicy < Struct.new(
  :decommission_timeout,
  :instance_resize_policy)
  include Aws::Structure
end