import { ShareAttributesProps } from './ShareAttributesProps';
import { Value } from '../../../cloudformation/Value';
/**
  The fair share policy for a scheduling policy.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-schedulingpolicy-fairsharepolicy.html">the AWS Docs</a>
*/
export interface FairsharePolicyProps {
    /** <code>ShareDistribution</code>  <a name="cfn-batch-schedulingpolicy-fairsharepolicy-sharedistribution"></a>
  An array of <code>SharedIdentifier</code> objects that contain the weights for the fair share identifiers for the fair share policy. Fair share identifiers that aren’t included have a default weight of <code>1.0</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> */
    shareDistribution?: ShareAttributesProps[];
    /** <code>ShareDecaySeconds</code>  <a name="cfn-batch-schedulingpolicy-fairsharepolicy-sharedecayseconds"></a>
  The amount of time (in seconds) to use to calculate a fair share percentage for each fair share identifier in use. A value of zero (0) indicates that only current usage is measured. The decay allows for more recently run jobs to have more weight than jobs that ran earlier. The maximum supported value is 604800 (1 week).<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> */
    shareDecaySeconds?: Value<number>;
    /** <code>ComputeReservation</code>  <a name="cfn-batch-schedulingpolicy-fairsharepolicy-computereservation"></a>
  A value used to reserve some of the available maximum vCPU for fair share identifiers that aren’t already used.<br />
  The reserved ratio is <code>(computeReservation/100)^ActiveFairShares </code> where <code>ActiveFairShares</code> is the number of active fair share identifiers.<br />
  For example, a <code>computeReservation</code> value of 50 indicates that AWS Batch reserves 50% of the maximum available vCPU if there’s only one fair share identifier. It reserves 25% if there are two fair share identifiers. It reserves 12.5% if there are three fair share identifiers. A <code>computeReservation</code> value of 25 indicates that AWS Batch should reserve 25% of the maximum available vCPU if there’s only one fair share identifier, 6.25% if there are two fair share identifiers, and 1.56% if there are three fair share identifiers.<br />
  The minimum value is 0 and the maximum value is 99.<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> */
    computeReservation?: Value<number>;
}
