AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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
show all
Defined in:
(unknown)

Overview

Note:

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

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)

    The device name that is exposed to the instance, such as /dev/sdh.

#ebsTypes::EbsBlockDevice

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

Returns:

  • (Types::EbsBlockDevice)

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

#no_deviceString

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

Returns:

  • (String)

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

#virtual_nameString

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

Returns:

  • (String)

    The virtual device name.