import { Value } from '../../../cloudformation/Value';
/**
  <code>SimpleScalingPolicyConfiguration</code> is a subproperty of the <code>ScalingAction</code> property type. <code>SimpleScalingPolicyConfiguration</code> determines how an automatic scaling action adds or removes instances, the cooldown period, and the number of EC2 instances that are added each time the CloudWatch metric alarm condition is satisfied.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-simplescalingpolicyconfiguration.html">the AWS Docs</a>
*/
export interface SimpleScalingPolicyConfigurationProps {
    /** <code>AdjustmentType</code>  <a name="cfn-elasticmapreduce-cluster-simplescalingpolicyconfiguration-adjustmenttype"></a>
  The way in which Amazon EC2 instances are added (if <code>ScalingAdjustment</code> is a positive number) or terminated (if <code>ScalingAdjustment</code> is a negative number) each time the scaling activity is triggered. <code>CHANGE_IN_CAPACITY</code> is the default. <code>CHANGE_IN_CAPACITY</code> indicates that the Amazon EC2 instance count increments or decrements by <code>ScalingAdjustment</code>, which should be expressed as an integer. <code>PERCENT_CHANGE_IN_CAPACITY</code> indicates the instance count increments or decrements by the percentage specified by <code>ScalingAdjustment</code>, which should be expressed as an integer. For example, 20 indicates an increase in 20% increments of cluster capacity. <code>EXACT_CAPACITY</code> indicates the scaling activity results in an instance group with the number of Amazon EC2 instances specified by <code>ScalingAdjustment</code>, which should be expressed as a positive integer.<br />
  
  Required: No<br />
  
  Allowed values: <code>CHANGE_IN_CAPACITY | EXACT_CAPACITY | PERCENT_CHANGE_IN_CAPACITY</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    adjustmentType?: Value<'CHANGE_IN_CAPACITY' | 'EXACT_CAPACITY' | 'PERCENT_CHANGE_IN_CAPACITY'>;
    /** <code>CoolDown</code>  <a name="cfn-elasticmapreduce-cluster-simplescalingpolicyconfiguration-cooldown"></a>
  The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start. The default value is 0.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    coolDown?: Value<number>;
    /** <code>ScalingAdjustment</code>  <a name="cfn-elasticmapreduce-cluster-simplescalingpolicyconfiguration-scalingadjustment"></a>
  The amount by which to scale in or scale out, based on the specified <code>AdjustmentType</code>. A positive value adds to the instance group’s Amazon EC2 instance count while a negative number removes instances. If <code>AdjustmentType</code> is set to <code>EXACT_CAPACITY</code>, the number should only be a positive integer. If <code>AdjustmentType</code> is set to <code>PERCENT_CHANGE_IN_CAPACITY</code>, the value should express the percentage as an integer. For example, -20 indicates a decrease in 20% increments of cluster capacity.<br />
  
  Required: Yes<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    scalingAdjustment: Value<number>;
}
