import { Value } from '../../../cloudformation/Value';
/**
  The <code>CapacityProviderStrategy</code> property specifies the details of the default capacity provider strategy for the cluster. When services or tasks are run in the cluster with no launch type or capacity provider strategy specified, the default capacity provider strategy is used.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-clustercapacityproviderassociations-capacityproviderstrategy.html">the AWS Docs</a>
*/
export interface CapacityProviderStrategyProps {
    /** <code>CapacityProvider</code>  <a name="cfn-ecs-clustercapacityproviderassociations-capacityproviderstrategy-capacityprovider"></a>
  The short name of the capacity provider.<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> */
    capacityProvider: Value<string>;
    /** <code>Base</code>  <a name="cfn-ecs-clustercapacityproviderassociations-capacityproviderstrategy-base"></a>
  The
  base: efined. If no value is specified, the default value of <code>0</code> is used.<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> */
    base?: Value<number>;
    /** <code>Weight</code>  <a name="cfn-ecs-clustercapacityproviderassociations-capacityproviderstrategy-weight"></a>
  The
  weight: alue designates the relative percentage of the total number of tasks launched that should use the specified capacity provider. The <code>weight</code> value is taken into consideration after the <code>base</code> value, if defined, is satisfied.<br />
  If no <code>weight</code> value is specified, the default value of <code>0</code> is used. When multiple capacity providers are specified within a capacity provider strategy, at least one of the capacity providers must have a weight value greater than zero and any capacity providers with a weight of <code>0</code> will not be used to place tasks. If you specify multiple capacity providers in a strategy that all have a weight of <code>0</code>, any <code>RunTask</code> or <code>CreateService</code> actions using the capacity provider strategy will fail.<br />
  An example scenario for using weights is defining a strategy that contains two capacity providers and both have a weight of <code>1</code>, then when the <code>base</code> is satisfied, the tasks will be split evenly across the two capacity providers. Using that same logic, if you specify a weight of <code>1</code> for
  capacityProviderA: four tasks would use
  capacityProviderB: 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> */
    weight?: Value<number>;
}
