Class: Aws::OpsWorks::Types::BlockDeviceMapping
- Inherits:
-
Struct
- Object
- Struct
- Aws::OpsWorks::Types::BlockDeviceMapping
- Defined in:
- gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb
Overview
When making an API call, you may pass BlockDeviceMapping data as a 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.
Constant Summary collapse
- SENSITIVE =
[]
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.
371 372 373 374 375 376 377 378 |
# File 'gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb', line 371 class BlockDeviceMapping < Struct.new( :device_name, :no_device, :virtual_name, :ebs) SENSITIVE = [] include Aws::Structure end |
#ebs ⇒ Types::EbsBlockDevice
An EBSBlockDevice
that defines how to configure an Amazon EBS
volume when the instance is launched.
371 372 373 374 375 376 377 378 |
# File 'gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb', line 371 class BlockDeviceMapping < Struct.new( :device_name, :no_device, :virtual_name, :ebs) SENSITIVE = [] include Aws::Structure end |
#no_device ⇒ String
Suppresses the specified device included in the AMI's block device mapping.
371 372 373 374 375 376 377 378 |
# File 'gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb', line 371 class BlockDeviceMapping < Struct.new( :device_name, :no_device, :virtual_name, :ebs) SENSITIVE = [] include Aws::Structure end |
#virtual_name ⇒ String
The virtual device name. For more information, see BlockDeviceMapping.
371 372 373 374 375 376 377 378 |
# File 'gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb', line 371 class BlockDeviceMapping < Struct.new( :device_name, :no_device, :virtual_name, :ebs) SENSITIVE = [] include Aws::Structure end |