Class: Aws::AutoScaling::Types::BlockDeviceMapping

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-autoscaling/types.rb

Overview

Note:

When making an API call, you may pass BlockDeviceMapping data as a 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)


626
627
628
629
630
631
632
# File 'lib/aws-sdk-autoscaling/types.rb', line 626

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

#ebsTypes::Ebs

The information about the Amazon EBS volume.

Returns:



626
627
628
629
630
631
632
# File 'lib/aws-sdk-autoscaling/types.rb', line 626

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

#no_deviceBoolean

Suppresses a device mapping.

If this parameter is true for the root device, the instance might fail the EC2 health check. In that case, Amazon EC2 Auto Scaling launches a replacement instance.

Returns:

  • (Boolean)


626
627
628
629
630
631
632
# File 'lib/aws-sdk-autoscaling/types.rb', line 626

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

#virtual_nameString

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

Returns:

  • (String)


626
627
628
629
630
631
632
# File 'lib/aws-sdk-autoscaling/types.rb', line 626

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