You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::AutoScaling::Types::BlockDeviceMapping
- Inherits:
-
Struct
- Object
- Struct
- Aws::AutoScaling::Types::BlockDeviceMapping
- Defined in:
- (unknown)
Overview
When passing BlockDeviceMapping as input to an Aws::Client method, you can use a vanilla 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,
},
no_device: false,
}
Describes a block device mapping.
Instance Attribute Summary collapse
-
#device_name ⇒ String
The device name exposed to the EC2 instance (for example,
/dev/sdh
orxvdh
). -
#ebs ⇒ Types::Ebs
Parameters used to automatically set up EBS volumes when an instance is launched.
-
#no_device ⇒ Boolean
Setting this value to
true
suppresses the specified device included in the block device mapping of the AMI. -
#virtual_name ⇒ String
The name of the virtual device (for example,
ephemeral0
).
Instance Attribute Details
#device_name ⇒ String
The device name exposed to the EC2 instance (for example, /dev/sdh
or
xvdh
). For more information, see Device Naming on Linux Instances
in the Amazon EC2 User Guide for Linux Instances.
#ebs ⇒ Types::Ebs
Parameters used to automatically set up EBS volumes when an instance is launched.
You can specify either VirtualName
or Ebs
, but not both.
#no_device ⇒ Boolean
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
.
#virtual_name ⇒ String
The name of the virtual device (for example, ephemeral0
).
You can specify either VirtualName
or Ebs
, but not both.