import { Value } from '../../cloudformation/Value';
import { InstanceTypeConfigProps } from './instancefleetconfig/InstanceTypeConfigProps';
import { InstanceFleetProvisioningSpecificationsProps } from './instancefleetconfig/InstanceFleetProvisioningSpecificationsProps';
import { AwsResource } from '../../cloudformation/resources/AwsResource';
/**
  Use <code>InstanceFleetConfig</code> to define instance fleets for an EMR cluster. A cluster can not use both instance fleets and instance groups. For more information, see <a href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-instance-group-configuration.html">Configure Instance Fleets</a> in the <em>Amazon EMR Management Guide</em>.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticmapreduce-instancefleetconfig.html">the AWS Docs</a>
*/
export type InstanceFleetConfig = AwsResource<'AWS::EMR::InstanceFleetConfig', InstanceFleetConfigProperties>;
export declare function instanceFleetConfig(instanceFleetConfigProps: InstanceFleetConfigProperties): InstanceFleetConfig;
/**
  Use <code>InstanceFleetConfig</code> to define instance fleets for an EMR cluster. A cluster can not use both instance fleets and instance groups. For more information, see <a href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-instance-group-configuration.html">Configure Instance Fleets</a> in the <em>Amazon EMR Management Guide</em>.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticmapreduce-instancefleetconfig.html">the AWS Docs</a>
*/
export interface InstanceFleetConfigProperties {
    /** <code>ClusterId</code>  <a name="cfn-elasticmapreduce-instancefleetconfig-clusterid"></a>
  The unique identifier of the EMR cluster.<br />
  
  Required: Yes<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement">Replacement</a> */
    clusterId: Value<string>;
    /** <code>InstanceFleetType</code>  <a name="cfn-elasticmapreduce-instancefleetconfig-instancefleettype"></a>
  The node type that the instance fleet hosts.<br />
  
  Allowed Values: TASK<br />
  
  Required: Yes<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement">Replacement</a> */
    instanceFleetType: Value<string>;
    /** <code>InstanceTypeConfigs</code>  <a name="cfn-elasticmapreduce-instancefleetconfig-instancetypeconfigs"></a>
  <code>InstanceTypeConfigs</code> determine the EC2 instances that Amazon EMR attempts to provision to fulfill On-Demand and Spot target capacities.<br />
  The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement">Replacement</a> */
    instanceTypeConfigs?: InstanceTypeConfigProps[];
    /** <code>LaunchSpecifications</code>  <a name="cfn-elasticmapreduce-instancefleetconfig-launchspecifications"></a>
  The launch specification for the instance fleet.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement">Replacement</a> */
    launchSpecifications?: InstanceFleetProvisioningSpecificationsProps;
    /** <code>Name</code>  <a name="cfn-elasticmapreduce-instancefleetconfig-name"></a>
  The friendly name of the instance fleet.<br />
  
  Required: No<br />
  
  Minimum: <code>0</code><br />
  
  Maximum: <code>256</code><br />
  
  Pattern: <code>[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement">Replacement</a> */
    name?: Value<string>;
    /** <code>TargetOnDemandCapacity</code>  <a name="cfn-elasticmapreduce-instancefleetconfig-targetondemandcapacity"></a>
  The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision. When the instance fleet launches, Amazon EMR tries to provision On-Demand instances as specified by <code>InstanceTypeConfig</code>. Each instance configuration has a specified <code>WeightedCapacity</code>. When an On-Demand instance is provisioned, the <code>WeightedCapacity</code> units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a <code>WeightedCapacity</code> of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units.<br />
  If not specified or set to 0, only Spot instances are provisioned for the instance fleet using <code>TargetSpotCapacity</code>. At least one of <code>TargetSpotCapacity</code> and <code>TargetOnDemandCapacity</code> should be greater than 0. For a master instance fleet, only one of <code>TargetSpotCapacity</code> and <code>TargetOnDemandCapacity</code> can be specified, and its value must be 1.
  
  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> */
    targetOnDemandCapacity?: Value<number>;
    /** <code>TargetSpotCapacity</code>  <a name="cfn-elasticmapreduce-instancefleetconfig-targetspotcapacity"></a>
  The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision. When the instance fleet launches, Amazon EMR tries to provision Spot instances as specified by <code>InstanceTypeConfig</code>. Each instance configuration has a specified <code>WeightedCapacity</code>. When a Spot instance is provisioned, the <code>WeightedCapacity</code> units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a <code>WeightedCapacity</code> of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units.<br />
  If not specified or set to 0, only On-Demand instances are provisioned for the instance fleet. At least one of <code>TargetSpotCapacity</code> and <code>TargetOnDemandCapacity</code> should be greater than 0. For a master instance fleet, only one of <code>TargetSpotCapacity</code> and <code>TargetOnDemandCapacity</code> can be specified, and its value must be 1.
  
  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> */
    targetSpotCapacity?: Value<number>;
}
