import { Value } from '../../../cloudformation/Value';
import { EbsProps } from './EbsProps';
import { NoDeviceProps } from './NoDeviceProps';
/**
  Specifies a block device mapping for an instance. You must specify exactly one of the following properties: <code>VirtualName</code>, <code>Ebs</code>, or <code>NoDevice</code>.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-blockdev-mapping.html">the AWS Docs</a>
*/
export interface BlockDeviceMappingProps {
    /** <code>DeviceName</code>  <a name="cfn-ec2-blockdev-mapping-devicename"></a>
  The device name (for example, <code>/dev/sdh</code> or <code>xvdh</code>).<br />
  After the instance is running, this parameter is used to specify the device name of the block device mapping to update.
  
  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> */
    deviceName: Value<string>;
    /** <code>Ebs</code>  <a name="cfn-ec2-blockdev-mapping-ebs"></a>
  Parameters used to automatically set up EBS volumes when the instance is launched.<br />
  After the instance is running, you can modify only the <code>DeleteOnTermination</code> parameter for the attached volumes without interrupting the instance. Modifying any other parameter results in instance <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt"> replacement</a>.
  
  Required: Conditional<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> */
    ebs?: EbsProps;
    /** <code>NoDevice</code>  <a name="cfn-ec2-blockdev-mapping-nodevice"></a>
  To omit the device from the block device mapping, specify an empty string.<br />
  After the instance is running, modifying this parameter results in instance <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement"> replacement</a>.
  
  Required: Conditional<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> */
    noDevice?: NoDeviceProps;
    /** <code>VirtualName</code>  <a name="cfn-ec2-blockdev-mapping-virtualname"></a>
  The virtual device name (<code>ephemeral</code>N). The name must be in the form <code>ephemeral</code>
  X: s a number starting from zero (0). For example, an instance type with 2 available instance store volumes can specify mappings for <code>ephemeral0</code> and <code>ephemeral1</code>. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.<br />
  NVMe instance store volumes are automatically enumerated and assigned a device name. Including them in your block device mapping has no effect.<br />
  
  Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.<br />
  After the instance is running, modifying this parameter results in instance <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement"> replacement</a>.
  
  Required: Conditional<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> */
    virtualName?: Value<string>;
}
