import { Value } from '../../../cloudformation/Value';
/**
  <code>SpotProvisioningSpecification</code> is a subproperty of the <code>InstanceFleetProvisioningSpecifications</code> property type. <code>SpotProvisioningSpecification</code> determines the launch specification for Spot instances in the instance fleet, which includes the defined duration and provisioning timeout behavior.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancefleetconfig-spotprovisioningspecification.html">the AWS Docs</a>
*/
export interface SpotProvisioningSpecificationProps {
    /** <code>AllocationStrategy</code>  <a name="cfn-elasticmapreduce-instancefleetconfig-spotprovisioningspecification-allocationstrategy"></a>
  Specifies one of the following strategies to launch Spot Instance fleets: <code>price-capacity-optimized</code>, <code>capacity-optimized</code>, <code>lowest-price</code>, or <code>diversified</code>. For more information on the provisioning strategies, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-allocation-strategy.html">Allocation strategies for Spot Instances</a> in the
  Amazon EC2 User Guide for Linux Instances: br />
  When you launch a Spot Instance fleet with the old console, it automatically launches with the <code>capacity-optimized</code> strategy. You can’t change the allocation strategy from the old console.
  
  Required: No<br />
  
  Allowed values: <code>capacity-optimized | diversified | lowest-price | price-capacity-optimized</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> */
    allocationStrategy?: Value<'capacity-optimized' | 'diversified' | 'lowest-price' | 'price-capacity-optimized'>;
    /** <code>BlockDurationMinutes</code>  <a name="cfn-elasticmapreduce-instancefleetconfig-spotprovisioningspecification-blockdurationminutes"></a>
  The defined duration for Spot Instances (also known as Spot blocks) in minutes. When specified, the Spot Instance does not terminate before the defined duration expires, and defined duration pricing for Spot Instances applies. Valid values are 60, 120, 180, 240, 300, or 360. The duration period starts as soon as a Spot Instance receives its instance ID. At the end of the duration, Amazon EC2 marks the Spot Instance for termination and provides a Spot Instance termination notice, which gives the instance a two-minute warning before it terminates.<br />
  Spot Instances with a defined duration (also known as Spot blocks) are no longer available to new customers from July 1, 2021. For customers who have previously used the feature, we will continue to support Spot Instances with a defined duration until December 31, 2022.
  
  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> */
    blockDurationMinutes?: Value<number>;
    /** <code>TimeoutAction</code>  <a name="cfn-elasticmapreduce-instancefleetconfig-spotprovisioningspecification-timeoutaction"></a>
  The action to take when <code>TargetSpotCapacity</code> has not been fulfilled when the <code>TimeoutDurationMinutes</code> has expired; that is, when all Spot Instances could not be provisioned within the Spot provisioning timeout. Valid values are <code>TERMINATE_CLUSTER</code> and <code>SWITCH_TO_ON_DEMAND</code>. SWITCH_TO_ON_DEMAND specifies that if no Spot Instances are available, On-Demand Instances should be provisioned to fulfill any remaining Spot capacity.<br />
  
  Required: Yes<br />
  
  Allowed values: <code>SWITCH_TO_ON_DEMAND | TERMINATE_CLUSTER</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> */
    timeoutAction: Value<'SWITCH_TO_ON_DEMAND' | 'TERMINATE_CLUSTER'>;
    /** <code>TimeoutDurationMinutes</code>  <a name="cfn-elasticmapreduce-instancefleetconfig-spotprovisioningspecification-timeoutdurationminutes"></a>
  The Spot provisioning timeout period in minutes. If Spot Instances are not provisioned within this time period, the <code>TimeOutAction</code> is taken. Minimum value is 5 and maximum value is 1440. The timeout applies only during initial provisioning, when the cluster is first created.<br />
  
  Required: Yes<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> */
    timeoutDurationMinutes: Value<number>;
}
