import { Value } from '../../../cloudformation/Value';
import { TargetTrackingScalingPolicyConfigurationProps } from './TargetTrackingScalingPolicyConfigurationProps';
/**
  Configures a scalable target and an autoscaling policy for a table or global secondary index’s read or write capacity.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-capacityautoscalingsettings.html">the AWS Docs</a>
*/
export interface CapacityAutoScalingSettingsProps {
    /** <code>MinCapacity</code>  <a name="cfn-dynamodb-globaltable-capacityautoscalingsettings-mincapacity"></a>
  The minimum provisioned capacity units for the global table.<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>SeedCapacity</code>  <a name="cfn-dynamodb-globaltable-capacityautoscalingsettings-seedcapacity"></a>
  When switching billing mode from <code>PAY_PER_REQUEST</code> to <code>PROVISIONED</code>, DynamoDB requires you to specify read and write capacity unit values for the table and for each global secondary index. These values will be applied to all replicas. The table will use these provisioned values until CloudFormation creates the autoscaling policies you configured in your template. CloudFormation cannot determine what capacity the table and its global secondary indexes will require in this time period, since they are application-dependent.<br />
  If you want to switch a table’s billing mode from <code>PAY_PER_REQUEST</code> to <code>PROVISIONED</code>, you must specify a value for this property for each autoscaled resource. If you specify different values for the same resource in different regions, CloudFormation will use the highest value found in either the <code>SeedCapacity</code> or <code>ReadCapacityUnits</code> properties. For example, if your global secondary index <code>myGSI</code> has a <code>SeedCapacity</code> of 10 in us-east-1 and a fixed <code>ReadCapacityUnits</code> of 20 in eu-west-1, CloudFormation will initially set the read capacity for <code>myGSI</code> to 20. Note that if you disable <code>ScaleIn</code> for <code>myGSI</code> in us-east-1, its read capacity units might not be set back to 10.<br />
  You must also specify a value for <code>SeedCapacity</code> when you plan to switch a table’s billing mode from <code>PROVISIONED</code> to <code>PAY_PER_REQUEST</code>, because CloudFormation might need to roll back the operation (reverting the billing mode to <code>PROVISIONED</code>) and this cannot succeed without specifying a value for <code>SeedCapacity</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> */
    seedCapacity?: Value<number>;
    /** <code>TargetTrackingScalingPolicyConfiguration</code>  <a name="cfn-dynamodb-globaltable-capacityautoscalingsettings-targettrackingscalingpolicyconfiguration"></a>
  Defines a target tracking scaling policy.<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> */
    targetTrackingScalingPolicyConfiguration: TargetTrackingScalingPolicyConfigurationProps;
    /** <code>MaxCapacity</code>  <a name="cfn-dynamodb-globaltable-capacityautoscalingsettings-maxcapacity"></a>
  The maximum provisioned capacity units for the global table.<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>;
}
