You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::OpsWorks::Types::BlockDeviceMapping
- Inherits:
-
Struct
- Object
- Struct
- Aws::OpsWorks::Types::BlockDeviceMapping
- Defined in:
- (unknown)
Overview
When passing BlockDeviceMapping as input to an Aws::Client method, you can use a vanilla Hash:
{
device_name: "String",
no_device: "String",
virtual_name: "String",
ebs: {
snapshot_id: "String",
iops: 1,
volume_size: 1,
volume_type: "gp2", # accepts gp2, io1, standard
delete_on_termination: false,
},
}
Describes a block device mapping. This data type maps directly to the Amazon EC2 BlockDeviceMapping data type.
Instance Attribute Summary collapse
-
#device_name ⇒ String
The device name that is exposed to the instance, such as
/dev/sdh
. -
#ebs ⇒ Types::EbsBlockDevice
An
EBSBlockDevice
that defines how to configure an Amazon EBS volume when the instance is launched. -
#no_device ⇒ String
Suppresses the specified device included in the AMI\'s block device mapping.
-
#virtual_name ⇒ String
The virtual device name.
Instance Attribute Details
#device_name ⇒ String
The device name that is exposed to the instance, such as /dev/sdh
. For
the root device, you can use the explicit device name or you can set
this parameter to ROOT_DEVICE
and AWS OpsWorks Stacks will provide the
correct device name.
#ebs ⇒ Types::EbsBlockDevice
An EBSBlockDevice
that defines how to configure an Amazon EBS volume
when the instance is launched.
#no_device ⇒ String
Suppresses the specified device included in the AMI\'s block device mapping.
#virtual_name ⇒ String
The virtual device name. For more information, see BlockDeviceMapping.