#include <SimpleScalingPolicyConfiguration.h>
An automatic scaling configuration, which describes how the policy adds or removes instances, the cooldown period, and the number of EC2 instances that will be added each time the CloudWatch metric alarm condition is satisfied.
See Also:
AWS API Reference
Definition at line 34 of file SimpleScalingPolicyConfiguration.h.
◆ SimpleScalingPolicyConfiguration() [1/2]
Aws::EMR::Model::SimpleScalingPolicyConfiguration::SimpleScalingPolicyConfiguration 
( 
 ) 

◆ SimpleScalingPolicyConfiguration() [2/2]
◆ AdjustmentTypeHasBeenSet()
bool Aws::EMR::Model::SimpleScalingPolicyConfiguration::AdjustmentTypeHasBeenSet 
( 
 ) 
const 

inline 
The way in which EC2 instances are added (if ScalingAdjustment
is a positive number) or terminated (if ScalingAdjustment
is a negative number) each time the scaling activity is triggered. CHANGE_IN_CAPACITY
is the default. CHANGE_IN_CAPACITY
indicates that the EC2 instance count increments or decrements by ScalingAdjustment
, which should be expressed as an integer. PERCENT_CHANGE_IN_CAPACITY
indicates the instance count increments or decrements by the percentage specified by ScalingAdjustment
, which should be expressed as an integer. For example, 20 indicates an increase in 20% increments of cluster capacity. EXACT_CAPACITY
indicates the scaling activity results in an instance group with the number of EC2 instances specified by ScalingAdjustment
, which should be expressed as a positive integer.
Definition at line 75 of file SimpleScalingPolicyConfiguration.h.
◆ CoolDownHasBeenSet()
bool Aws::EMR::Model::SimpleScalingPolicyConfiguration::CoolDownHasBeenSet 
( 
 ) 
const 

inline 
The amount of time, in seconds, after a scaling activity completes before any further triggerrelated scaling activities can start. The default value is 0.
Definition at line 207 of file SimpleScalingPolicyConfiguration.h.
◆ GetAdjustmentType()
const AdjustmentType& Aws::EMR::Model::SimpleScalingPolicyConfiguration::GetAdjustmentType 
( 
 ) 
const 

inline 
The way in which EC2 instances are added (if ScalingAdjustment
is a positive number) or terminated (if ScalingAdjustment
is a negative number) each time the scaling activity is triggered. CHANGE_IN_CAPACITY
is the default. CHANGE_IN_CAPACITY
indicates that the EC2 instance count increments or decrements by ScalingAdjustment
, which should be expressed as an integer. PERCENT_CHANGE_IN_CAPACITY
indicates the instance count increments or decrements by the percentage specified by ScalingAdjustment
, which should be expressed as an integer. For example, 20 indicates an increase in 20% increments of cluster capacity. EXACT_CAPACITY
indicates the scaling activity results in an instance group with the number of EC2 instances specified by ScalingAdjustment
, which should be expressed as a positive integer.
Definition at line 58 of file SimpleScalingPolicyConfiguration.h.
◆ GetCoolDown()
int Aws::EMR::Model::SimpleScalingPolicyConfiguration::GetCoolDown 
( 
 ) 
const 

inline 
The amount of time, in seconds, after a scaling activity completes before any further triggerrelated scaling activities can start. The default value is 0.
Definition at line 200 of file SimpleScalingPolicyConfiguration.h.
◆ GetScalingAdjustment()
int Aws::EMR::Model::SimpleScalingPolicyConfiguration::GetScalingAdjustment 
( 
 ) 
const 

inline 
The amount by which to scale in or scale out, based on the specified AdjustmentType
. A positive value adds to the instance group's EC2 instance count while a negative number removes instances. If AdjustmentType
is set to EXACT_CAPACITY
, the number should only be a positive integer. If AdjustmentType
is set to PERCENT_CHANGE_IN_CAPACITY
, the value should express the percentage as an integer. For example, 20 indicates a decrease in 20% increments of cluster capacity.
Definition at line 156 of file SimpleScalingPolicyConfiguration.h.
◆ Jsonize()
◆ operator=()
◆ ScalingAdjustmentHasBeenSet()
bool Aws::EMR::Model::SimpleScalingPolicyConfiguration::ScalingAdjustmentHasBeenSet 
( 
 ) 
const 

inline 
The amount by which to scale in or scale out, based on the specified AdjustmentType
. A positive value adds to the instance group's EC2 instance count while a negative number removes instances. If AdjustmentType
is set to EXACT_CAPACITY
, the number should only be a positive integer. If AdjustmentType
is set to PERCENT_CHANGE_IN_CAPACITY
, the value should express the percentage as an integer. For example, 20 indicates a decrease in 20% increments of cluster capacity.
Definition at line 168 of file SimpleScalingPolicyConfiguration.h.
◆ SetAdjustmentType() [1/2]
void Aws::EMR::Model::SimpleScalingPolicyConfiguration::SetAdjustmentType 
( 
const AdjustmentType & 
value  ) 


inline 
The way in which EC2 instances are added (if ScalingAdjustment
is a positive number) or terminated (if ScalingAdjustment
is a negative number) each time the scaling activity is triggered. CHANGE_IN_CAPACITY
is the default. CHANGE_IN_CAPACITY
indicates that the EC2 instance count increments or decrements by ScalingAdjustment
, which should be expressed as an integer. PERCENT_CHANGE_IN_CAPACITY
indicates the instance count increments or decrements by the percentage specified by ScalingAdjustment
, which should be expressed as an integer. For example, 20 indicates an increase in 20% increments of cluster capacity. EXACT_CAPACITY
indicates the scaling activity results in an instance group with the number of EC2 instances specified by ScalingAdjustment
, which should be expressed as a positive integer.
Definition at line 92 of file SimpleScalingPolicyConfiguration.h.
◆ SetAdjustmentType() [2/2]
void Aws::EMR::Model::SimpleScalingPolicyConfiguration::SetAdjustmentType 
( 
AdjustmentType && 
value  ) 


inline 
The way in which EC2 instances are added (if ScalingAdjustment
is a positive number) or terminated (if ScalingAdjustment
is a negative number) each time the scaling activity is triggered. CHANGE_IN_CAPACITY
is the default. CHANGE_IN_CAPACITY
indicates that the EC2 instance count increments or decrements by ScalingAdjustment
, which should be expressed as an integer. PERCENT_CHANGE_IN_CAPACITY
indicates the instance count increments or decrements by the percentage specified by ScalingAdjustment
, which should be expressed as an integer. For example, 20 indicates an increase in 20% increments of cluster capacity. EXACT_CAPACITY
indicates the scaling activity results in an instance group with the number of EC2 instances specified by ScalingAdjustment
, which should be expressed as a positive integer.
Definition at line 109 of file SimpleScalingPolicyConfiguration.h.
◆ SetCoolDown()
void Aws::EMR::Model::SimpleScalingPolicyConfiguration::SetCoolDown 
( 
int 
value  ) 


inline 
The amount of time, in seconds, after a scaling activity completes before any further triggerrelated scaling activities can start. The default value is 0.
Definition at line 214 of file SimpleScalingPolicyConfiguration.h.
◆ SetScalingAdjustment()
void Aws::EMR::Model::SimpleScalingPolicyConfiguration::SetScalingAdjustment 
( 
int 
value  ) 


inline 
The amount by which to scale in or scale out, based on the specified AdjustmentType
. A positive value adds to the instance group's EC2 instance count while a negative number removes instances. If AdjustmentType
is set to EXACT_CAPACITY
, the number should only be a positive integer. If AdjustmentType
is set to PERCENT_CHANGE_IN_CAPACITY
, the value should express the percentage as an integer. For example, 20 indicates a decrease in 20% increments of cluster capacity.
Definition at line 180 of file SimpleScalingPolicyConfiguration.h.
◆ WithAdjustmentType() [1/2]
The way in which EC2 instances are added (if ScalingAdjustment
is a positive number) or terminated (if ScalingAdjustment
is a negative number) each time the scaling activity is triggered. CHANGE_IN_CAPACITY
is the default. CHANGE_IN_CAPACITY
indicates that the EC2 instance count increments or decrements by ScalingAdjustment
, which should be expressed as an integer. PERCENT_CHANGE_IN_CAPACITY
indicates the instance count increments or decrements by the percentage specified by ScalingAdjustment
, which should be expressed as an integer. For example, 20 indicates an increase in 20% increments of cluster capacity. EXACT_CAPACITY
indicates the scaling activity results in an instance group with the number of EC2 instances specified by ScalingAdjustment
, which should be expressed as a positive integer.
Definition at line 126 of file SimpleScalingPolicyConfiguration.h.
◆ WithAdjustmentType() [2/2]
The way in which EC2 instances are added (if ScalingAdjustment
is a positive number) or terminated (if ScalingAdjustment
is a negative number) each time the scaling activity is triggered. CHANGE_IN_CAPACITY
is the default. CHANGE_IN_CAPACITY
indicates that the EC2 instance count increments or decrements by ScalingAdjustment
, which should be expressed as an integer. PERCENT_CHANGE_IN_CAPACITY
indicates the instance count increments or decrements by the percentage specified by ScalingAdjustment
, which should be expressed as an integer. For example, 20 indicates an increase in 20% increments of cluster capacity. EXACT_CAPACITY
indicates the scaling activity results in an instance group with the number of EC2 instances specified by ScalingAdjustment
, which should be expressed as a positive integer.
Definition at line 143 of file SimpleScalingPolicyConfiguration.h.
◆ WithCoolDown()
The amount of time, in seconds, after a scaling activity completes before any further triggerrelated scaling activities can start. The default value is 0.
Definition at line 221 of file SimpleScalingPolicyConfiguration.h.
◆ WithScalingAdjustment()
The amount by which to scale in or scale out, based on the specified AdjustmentType
. A positive value adds to the instance group's EC2 instance count while a negative number removes instances. If AdjustmentType
is set to EXACT_CAPACITY
, the number should only be a positive integer. If AdjustmentType
is set to PERCENT_CHANGE_IN_CAPACITY
, the value should express the percentage as an integer. For example, 20 indicates a decrease in 20% increments of cluster capacity.
Definition at line 192 of file SimpleScalingPolicyConfiguration.h.
The documentation for this class was generated from the following file: