class Aws::AutoScaling::Types::BlockDeviceMapping
Describes a block device mapping.
@note When making an API call, you may pass BlockDeviceMapping
data as a hash: { virtual_name: "XmlStringMaxLen255", device_name: "XmlStringMaxLen255", # required ebs: { snapshot_id: "XmlStringMaxLen255", volume_size: 1, volume_type: "BlockDeviceEbsVolumeType", delete_on_termination: false, iops: 1, encrypted: false, throughput: 1, }, no_device: false, }
@!attribute [rw] virtual_name
The name of the virtual device (for example, `ephemeral0`). You can specify either `VirtualName` or `Ebs`, but not both. @return [String]
@!attribute [rw] device_name
The device name exposed to the EC2 instance (for example, `/dev/sdh` or `xvdh`). For more information, see [Device Naming on Linux Instances][1] in the *Amazon EC2 User Guide for Linux Instances*. [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/device_naming.html @return [String]
@!attribute [rw] ebs
Parameters used to automatically set up EBS volumes when an instance is launched. You can specify either `VirtualName` or `Ebs`, but not both. @return [Types::Ebs]
@!attribute [rw] no_device
Setting this value to `true` suppresses the specified device included in the block device mapping of the AMI. If `NoDevice` is `true` for the root device, instances might fail the EC2 health check. In that case, Amazon EC2 Auto Scaling launches replacement instances. If you specify `NoDevice`, you cannot specify `Ebs`. @return [Boolean]
@see docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/BlockDeviceMapping AWS API Documentation
Constants
- SENSITIVE