Class: Aws::EMR::Types::PutAutoScalingPolicyInput
- Inherits:
-
Struct
- Object
- Struct
- Aws::EMR::Types::PutAutoScalingPolicyInput
- Defined in:
- gems/aws-sdk-emr/lib/aws-sdk-emr/types.rb
Overview
Note:
When making an API call, you may pass PutAutoScalingPolicyInput data as a hash:
{
cluster_id: "ClusterId", # required
instance_group_id: "InstanceGroupId", # required
auto_scaling_policy: { # required
constraints: { # required
min_capacity: 1, # required
max_capacity: 1, # required
},
rules: [ # required
{
name: "String", # required
description: "String",
action: { # required
market: "ON_DEMAND", # accepts ON_DEMAND, SPOT
simple_scaling_policy_configuration: { # required
adjustment_type: "CHANGE_IN_CAPACITY", # accepts CHANGE_IN_CAPACITY, PERCENT_CHANGE_IN_CAPACITY, EXACT_CAPACITY
scaling_adjustment: 1, # required
cool_down: 1,
},
},
trigger: { # required
cloud_watch_alarm_definition: { # required
comparison_operator: "GREATER_THAN_OR_EQUAL", # required, accepts GREATER_THAN_OR_EQUAL, GREATER_THAN, LESS_THAN, LESS_THAN_OR_EQUAL
evaluation_periods: 1,
metric_name: "String", # required
namespace: "String",
period: 1, # required
statistic: "SAMPLE_COUNT", # accepts SAMPLE_COUNT, AVERAGE, SUM, MINIMUM, MAXIMUM
threshold: 1.0, # required
unit: "NONE", # accepts NONE, SECONDS, MICRO_SECONDS, MILLI_SECONDS, BYTES, KILO_BYTES, MEGA_BYTES, GIGA_BYTES, TERA_BYTES, BITS, KILO_BITS, MEGA_BITS, GIGA_BITS, TERA_BITS, PERCENT, COUNT, BYTES_PER_SECOND, KILO_BYTES_PER_SECOND, MEGA_BYTES_PER_SECOND, GIGA_BYTES_PER_SECOND, TERA_BYTES_PER_SECOND, BITS_PER_SECOND, KILO_BITS_PER_SECOND, MEGA_BITS_PER_SECOND, GIGA_BITS_PER_SECOND, TERA_BITS_PER_SECOND, COUNT_PER_SECOND
dimensions: [
{
key: "String",
value: "String",
},
],
},
},
},
],
},
}
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#auto_scaling_policy ⇒ Types::AutoScalingPolicy
Specifies the definition of the automatic scaling policy.
-
#cluster_id ⇒ String
Specifies the ID of a cluster.
-
#instance_group_id ⇒ String
Specifies the ID of the instance group to which the automatic scaling policy is applied.
Instance Attribute Details
#auto_scaling_policy ⇒ Types::AutoScalingPolicy
Specifies the definition of the automatic scaling policy.
5851 5852 5853 5854 5855 5856 5857 |
# File 'gems/aws-sdk-emr/lib/aws-sdk-emr/types.rb', line 5851 class PutAutoScalingPolicyInput < Struct.new( :cluster_id, :instance_group_id, :auto_scaling_policy) SENSITIVE = [] include Aws::Structure end |
#cluster_id ⇒ String
Specifies the ID of a cluster. The instance group to which the automatic scaling policy is applied is within this cluster.
5851 5852 5853 5854 5855 5856 5857 |
# File 'gems/aws-sdk-emr/lib/aws-sdk-emr/types.rb', line 5851 class PutAutoScalingPolicyInput < Struct.new( :cluster_id, :instance_group_id, :auto_scaling_policy) SENSITIVE = [] include Aws::Structure end |
#instance_group_id ⇒ String
Specifies the ID of the instance group to which the automatic scaling policy is applied.
5851 5852 5853 5854 5855 5856 5857 |
# File 'gems/aws-sdk-emr/lib/aws-sdk-emr/types.rb', line 5851 class PutAutoScalingPolicyInput < Struct.new( :cluster_id, :instance_group_id, :auto_scaling_policy) SENSITIVE = [] include Aws::Structure end |