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::AutoScaling::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:

{
  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

Instance Attribute Details

#device_nameString

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.

Returns:

  • (String)

    The device name exposed to the EC2 instance (for example, /dev/sdh or xvdh).

#ebsTypes::Ebs

Parameters used to automatically set up EBS volumes when an instance is launched.

You can specify either VirtualName or Ebs, but not both.

Returns:

  • (Types::Ebs)

    Parameters used to automatically set up EBS volumes when an instance is launched.

#no_deviceBoolean

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.

Returns:

  • (Boolean)

    Setting this value to true suppresses the specified device included in the block device mapping of the AMI.

#virtual_nameString

The name of the virtual device (for example, ephemeral0).

You can specify either VirtualName or Ebs, but not both.

Returns:

  • (String)

    The name of the virtual device (for example, ephemeral0).