import { Value } from '../../../cloudformation/Value';
import { TargetTrackingConfigurationProps } from './TargetTrackingConfigurationProps';
import { CustomizedLoadMetricSpecificationProps } from './CustomizedLoadMetricSpecificationProps';
import { PredefinedLoadMetricSpecificationProps } from './PredefinedLoadMetricSpecificationProps';
/**
  <code>ScalingInstruction</code> is a property of <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscalingplans-scalingplan.html">ScalingPlan</a> that specifies the scaling instruction for a scalable resource in a scaling plan. Each scaling instruction applies to one resource.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscalingplans-scalingplan-scalinginstruction.html">the AWS Docs</a>
*/
export interface ScalingInstructionProps {
    /** <code>DisableDynamicScaling</code>  <a name="cfn-autoscalingplans-scalingplan-scalinginstruction-disabledynamicscaling"></a>
  Controls whether dynamic scaling by AWS Auto Scaling is disabled. When dynamic scaling is enabled, AWS Auto Scaling creates target tracking scaling policies based on the specified target tracking configurations.<br />
  The default is enabled (<code>false</code>).<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> */
    disableDynamicScaling?: Value<boolean>;
    /** <code>ServiceNamespace</code>  <a name="cfn-autoscalingplans-scalingplan-scalinginstruction-servicenamespace"></a>
  The namespace of the AWS service.<br />
  
  Required: Yes<br />
  
  Allowed values: <code>autoscaling | dynamodb | ec2 | ecs | rds</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> */
    serviceNamespace: Value<'autoscaling' | 'dynamodb' | 'ec2' | 'ecs' | 'rds'>;
    /** <p> */
    predictiveScalingMaxCapacityBehavior?: Value<string>;
    /** <p> */
    scalableDimension: Value<string>;
    /** <code>ScalingPolicyUpdateBehavior</code>  <a name="cfn-autoscalingplans-scalingplan-scalinginstruction-scalingpolicyupdatebehavior"></a>
  Controls whether your scaling policies that are external to AWS Auto Scaling are deleted and new target tracking scaling policies created. The default value is <code>KeepExternalPolicies</code>.<br />
  Valid only when configuring dynamic scaling.<br />
  
  Required: No<br />
  
  Allowed values: <code>KeepExternalPolicies | ReplaceExternalPolicies</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> */
    scalingPolicyUpdateBehavior?: Value<'KeepExternalPolicies' | 'ReplaceExternalPolicies'>;
    /** <code>MinCapacity</code>  <a name="cfn-autoscalingplans-scalingplan-scalinginstruction-mincapacity"></a>
  The minimum capacity of the resource.<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> */
    minCapacity: Value<number>;
    /** <code>TargetTrackingConfigurations</code>  <a name="cfn-autoscalingplans-scalingplan-scalinginstruction-targettrackingconfigurations"></a>
  The target tracking configurations (up to 10). Each of these structures must specify a unique scaling metric and a target value for the metric.<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> */
    targetTrackingConfigurations: TargetTrackingConfigurationProps[];
    /** <code>PredictiveScalingMaxCapacityBuffer</code>  <a name="cfn-autoscalingplans-scalingplan-scalinginstruction-predictivescalingmaxcapacitybuffer"></a>
  The size of the capacity buffer to use when the forecast capacity is close to or exceeds the maximum capacity. The value is specified as a percentage relative to the forecast capacity. For example, if the buffer is 10, this means a 10 percent buffer. With a 10 percent buffer, if the forecast capacity is 50, and the maximum capacity is 40, then the effective maximum capacity is 55.<br />
  Valid only when configuring predictive scaling. Required if <strong>PredictiveScalingMaxCapacityBehavior</strong> is set to <code>SetMaxCapacityAboveForecastCapacity</code>, and cannot be used otherwise.<br />
  The range is 1-100.<br />
  
  Required: Conditional<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> */
    predictiveScalingMaxCapacityBuffer?: Value<number>;
    /** <code>CustomizedLoadMetricSpecification</code>  <a name="cfn-autoscalingplans-scalingplan-scalinginstruction-customizedloadmetricspecification"></a>
  The customized load metric to use for predictive scaling. This property or a <strong>PredefinedLoadMetricSpecification</strong> is required when configuring predictive scaling, and cannot be used otherwise.<br />
  
  Required: Conditional<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> */
    customizedLoadMetricSpecification?: CustomizedLoadMetricSpecificationProps;
    /** <code>PredefinedLoadMetricSpecification</code>  <a name="cfn-autoscalingplans-scalingplan-scalinginstruction-predefinedloadmetricspecification"></a>
  The predefined load metric to use for predictive scaling. This property or a <strong>CustomizedLoadMetricSpecification</strong> is required when configuring predictive scaling, and cannot be used otherwise.<br />
  
  Required: Conditional<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> */
    predefinedLoadMetricSpecification?: PredefinedLoadMetricSpecificationProps;
    /** <p> */
    resourceId: Value<string>;
    /** <code>ScheduledActionBufferTime</code>  <a name="cfn-autoscalingplans-scalingplan-scalinginstruction-scheduledactionbuffertime"></a>
  The amount of time, in seconds, to buffer the run time of scheduled scaling actions when scaling out. For example, if the forecast says to add capacity at 10:00 AM, and the buffer time is 5 minutes, then the run time of the corresponding scheduled scaling action will be 9:55 AM. The intention is to give resources time to be provisioned. For example, it can take a few minutes to launch an EC2 instance. The actual amount of time required depends on several factors, such as the size of the instance and whether there are startup scripts to complete.<br />
  The value must be less than the forecast interval duration of 3600 seconds (60 minutes). The default is 300 seconds.<br />
  Valid only when configuring predictive scaling.<br />
  
  Required: No<br />
  
  Minimum: <code>0</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> */
    scheduledActionBufferTime?: Value<number>;
    /** <code>MaxCapacity</code>  <a name="cfn-autoscalingplans-scalingplan-scalinginstruction-maxcapacity"></a>
  The maximum capacity of the resource. The exception to this upper limit is if you specify a non-default setting for <strong>PredictiveScalingMaxCapacityBehavior</strong>.<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> */
    maxCapacity: Value<number>;
    /** <code>PredictiveScalingMode</code>  <a name="cfn-autoscalingplans-scalingplan-scalinginstruction-predictivescalingmode"></a>
  The predictive scaling mode. The default value is <code>ForecastAndScale</code>. Otherwise, AWS Auto Scaling forecasts capacity but does not apply any scheduled scaling actions based on the capacity forecast.<br />
  
  Required: No<br />
  
  Allowed values: <code>ForecastAndScale | ForecastOnly</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> */
    predictiveScalingMode?: Value<'ForecastAndScale' | 'ForecastOnly'>;
}
