import { Value } from '../../../cloudformation/Value';
import { NetworkInterfaceCountProps } from './NetworkInterfaceCountProps';
import { MemoryGiBPerVCpuProps } from './MemoryGiBPerVCpuProps';
import { VCpuCountProps } from './VCpuCountProps';
import { AcceleratorCountProps } from './AcceleratorCountProps';
import { NetworkBandwidthGbpsProps } from './NetworkBandwidthGbpsProps';
import { BaselineEbsBandwidthMbpsProps } from './BaselineEbsBandwidthMbpsProps';
import { AcceleratorTotalMemoryMiBProps } from './AcceleratorTotalMemoryMiBProps';
import { MemoryMiBProps } from './MemoryMiBProps';
import { TotalLocalStorageGBProps } from './TotalLocalStorageGBProps';
/**
  The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with these attributes.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-instancerequirements.html">the AWS Docs</a>
*/
export interface InstanceRequirementsProps {
    /** <p> */
    localStorageTypes?: Value<Value<string>[]>;
    /** <code>InstanceGenerations</code>  <a name="cfn-ec2-launchtemplate-instancerequirements-instancegenerations"></a>
  Indicates whether current or previous generation instance types are included. The current generation instance types are recommended for use. Current generation instance types are typically the latest two to three generations in each instance family. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html">Instance types</a> in the
  Amazon EC2 User Guide: br />
  For current generation instance types, specify <code>current</code>.<br />
  For previous generation instance types, specify <code>previous</code>.<br />
  Default: Current and previous generation instance types<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> */
    instanceGenerations?: Value<Value<string>[]>;
    /** <code>NetworkInterfaceCount</code>  <a name="cfn-ec2-launchtemplate-instancerequirements-networkinterfacecount"></a>
  The minimum and maximum number of network interfaces.<br />
  Default: No minimum or maximum limits<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> */
    networkInterfaceCount?: NetworkInterfaceCountProps;
    /** <code>MemoryGiBPerVCpu</code>  <a name="cfn-ec2-launchtemplate-instancerequirements-memorygibpervcpu"></a>
  The minimum and maximum amount of memory per vCPU, in GiB.<br />
  Default: No minimum or maximum limits<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> */
    memoryGiBPerVCpu?: MemoryGiBPerVCpuProps;
    /** <p> */
    acceleratorTypes?: Value<Value<string>[]>;
    /** <code>VCpuCount</code>  <a name="cfn-ec2-launchtemplate-instancerequirements-vcpucount"></a>
  The minimum and maximum number of vCPUs.<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> */
    vCpuCount?: VCpuCountProps;
    /** <code>ExcludedInstanceTypes</code>  <a name="cfn-ec2-launchtemplate-instancerequirements-excludedinstancetypes"></a>
  The instance types to exclude.<br />
  You can use strings with one or more wild cards, represented by an asterisk (<code>*</code>), to exclude an instance type, size, or generation. The following are examples: <code>m5.8xlarge</code>, <code>c5*.*</code>, <code>m5a.*</code>, <code>r*</code>, <code>*3*</code>.<br />
  For example, if you specify <code>c5*</code>,Amazon EC2 will exclude the entire C5 instance family, which includes all C5a and C5n instance types. If you specify <code>m5a.*</code>, Amazon EC2 will exclude all the M5a instance types, but not the M5n instance types.<br />
  If you specify <code>ExcludedInstanceTypes</code>, you can’t specify <code>AllowedInstanceTypes</code>.
  Default: No excluded instance types<br />
  
  Required: No<br />
  
  Maximum: <code>400</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> */
    excludedInstanceTypes?: Value<Value<string>[]>;
    /** <p> */
    acceleratorManufacturers?: Value<Value<string>[]>;
    /** <code>AllowedInstanceTypes</code>  <a name="cfn-ec2-launchtemplate-instancerequirements-allowedinstancetypes"></a>
  The instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes.<br />
  You can use strings with one or more wild cards, represented by an asterisk (<code>*</code>), to allow an instance type, size, or generation. The following are examples: <code>m5.8xlarge</code>, <code>c5*.*</code>, <code>m5a.*</code>, <code>r*</code>, <code>*3*</code>.<br />
  For example, if you specify <code>c5*</code>,Amazon EC2 will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specify <code>m5a.*</code>, Amazon EC2 will allow all the M5a instance types, but not the M5n instance types.<br />
  If you specify <code>AllowedInstanceTypes</code>, you can’t specify <code>ExcludedInstanceTypes</code>.
  Default: All instance types<br />
  
  Required: No<br />
  
  Maximum: <code>400</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> */
    allowedInstanceTypes?: Value<Value<string>[]>;
    /** <code>LocalStorage</code>  <a name="cfn-ec2-launchtemplate-instancerequirements-localstorage"></a>
  Indicates whether instance types with instance store volumes are included, excluded, or required. For more information, <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html">Amazon EC2 instance store</a> in the
  Amazon EC2 User Guide:  */
    localStorage?: Value<string>;
    /** <p> */
    cpuManufacturers?: Value<Value<string>[]>;
    /** <code>AcceleratorCount</code>  <a name="cfn-ec2-launchtemplate-instancerequirements-acceleratorcount"></a>
  The minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips) on an instance.<br />
  To exclude accelerator-enabled instance types, set <code>Max</code> to <code>0</code>.<br />
  Default: No minimum or maximum limits<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> */
    acceleratorCount?: AcceleratorCountProps;
    /** <code>NetworkBandwidthGbps</code>  <a name="cfn-ec2-launchtemplate-instancerequirements-networkbandwidthgbps"></a>
  The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps).<br />
  Default: No minimum or maximum limits<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> */
    networkBandwidthGbps?: NetworkBandwidthGbpsProps;
    /** <p> */
    bareMetal?: Value<string>;
    /** <code>RequireHibernateSupport</code>  <a name="cfn-ec2-launchtemplate-instancerequirements-requirehibernatesupport"></a>
  Indicates whether instance types must support hibernation for On-Demand Instances.<br />
  This parameter is not supported for <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetSpotPlacementScores.html">GetSpotPlacementScores</a>.<br />
  Default: <code>false</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> */
    requireHibernateSupport?: Value<boolean>;
    /** <code>SpotMaxPricePercentageOverLowestPrice</code>  <a name="cfn-ec2-launchtemplate-instancerequirements-spotmaxpricepercentageoverlowestprice"></a>
  The price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage above the least expensive current generation M, C, or R instance type with your specified attributes. When Amazon EC2 selects instance types with your attributes, it excludes instance types priced above your threshold.<br />
  The parameter accepts an integer, which Amazon EC2 interprets as a percentage.<br />
  To turn off price protection, specify a high value, such as <code>999999</code>.<br />
  This parameter is not supported for <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetSpotPlacementScores.html">GetSpotPlacementScores</a> and <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetInstanceTypesFromInstanceRequirements.html">GetInstanceTypesFromInstanceRequirements</a>.<br />
  If you set <code>TargetCapacityUnitType</code> to <code>vcpu</code> or <code>memory-mib</code>, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price.
  Default: <code>100</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> */
    spotMaxPricePercentageOverLowestPrice?: Value<number>;
    /** <code>BaselineEbsBandwidthMbps</code>  <a name="cfn-ec2-launchtemplate-instancerequirements-baselineebsbandwidthmbps"></a>
  The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-optimized.html">Amazon EBS–optimized instances</a> in the
  Amazon EC2 User Guide: br />
  Default: No minimum or maximum limits<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> */
    baselineEbsBandwidthMbps?: BaselineEbsBandwidthMbpsProps;
    /** <code>OnDemandMaxPricePercentageOverLowestPrice</code>  <a name="cfn-ec2-launchtemplate-instancerequirements-ondemandmaxpricepercentageoverlowestprice"></a>
  The price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage above the least expensive current generation M, C, or R instance type with your specified attributes. When Amazon EC2 selects instance types with your attributes, it excludes instance types priced above your threshold.<br />
  The parameter accepts an integer, which Amazon EC2 interprets as a percentage.<br />
  To turn off price protection, specify a high value, such as <code>999999</code>.<br />
  This parameter is not supported for <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetSpotPlacementScores.html">GetSpotPlacementScores</a> and <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetInstanceTypesFromInstanceRequirements.html">GetInstanceTypesFromInstanceRequirements</a>.<br />
  If you set <code>TargetCapacityUnitType</code> to <code>vcpu</code> or <code>memory-mib</code>, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price.
  Default: <code>20</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> */
    onDemandMaxPricePercentageOverLowestPrice?: Value<number>;
    /** <p> */
    acceleratorNames?: Value<Value<string>[]>;
    /** <code>AcceleratorTotalMemoryMiB</code>  <a name="cfn-ec2-launchtemplate-instancerequirements-acceleratortotalmemorymib"></a>
  The minimum and maximum amount of total accelerator memory, in MiB.<br />
  Default: No minimum or maximum limits<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> */
    acceleratorTotalMemoryMiB?: AcceleratorTotalMemoryMiBProps;
    /** <p> */
    burstablePerformance?: Value<string>;
    /** <code>MemoryMiB</code>  <a name="cfn-ec2-launchtemplate-instancerequirements-memorymib"></a>
  The minimum and maximum amount of memory, in MiB.<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> */
    memoryMiB?: MemoryMiBProps;
    /** <code>TotalLocalStorageGB</code>  <a name="cfn-ec2-launchtemplate-instancerequirements-totallocalstoragegb"></a>
  The minimum and maximum amount of total local storage, in GB.<br />
  Default: No minimum or maximum limits<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> */
    totalLocalStorageGB?: TotalLocalStorageGBProps;
}
