You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::OpsWorks::Types::BlockDeviceMapping

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb

Overview

Note:

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.

Instance Attribute Summary collapse

Instance Attribute Details

#device_nameString

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.

Returns:

  • (String)


363
364
365
366
367
368
369
# File 'gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb', line 363

class BlockDeviceMapping < Struct.new(
  :device_name,
  :no_device,
  :virtual_name,
  :ebs)
  include Aws::Structure
end

#ebsTypes::EbsBlockDevice

An EBSBlockDevice that defines how to configure an Amazon EBS volume when the instance is launched.



363
364
365
366
367
368
369
# File 'gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb', line 363

class BlockDeviceMapping < Struct.new(
  :device_name,
  :no_device,
  :virtual_name,
  :ebs)
  include Aws::Structure
end

#no_deviceString

Suppresses the specified device included in the AMI's block device mapping.

Returns:

  • (String)


363
364
365
366
367
368
369
# File 'gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb', line 363

class BlockDeviceMapping < Struct.new(
  :device_name,
  :no_device,
  :virtual_name,
  :ebs)
  include Aws::Structure
end

#virtual_nameString

The virtual device name. For more information, see BlockDeviceMapping.

Returns:

  • (String)


363
364
365
366
367
368
369
# File 'gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb', line 363

class BlockDeviceMapping < Struct.new(
  :device_name,
  :no_device,
  :virtual_name,
  :ebs)
  include Aws::Structure
end