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).

Returns:

  • (String)

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

#ebsTypes::Ebs

The information about the Amazon EBS volume.

Returns:

  • (Types::Ebs)

    The information about the Amazon EBS volume.

#no_deviceBoolean

Suppresses a device mapping.

If this parameter is true for the root device, the instance might fail the EC2 health check. Auto Scaling launches a replacement instance if the instance fails the health check.

Returns:

  • (Boolean)

    Suppresses a device mapping.

#virtual_nameString

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

Returns:

  • (String)

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