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

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-autoscaling/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)


518
519
520
521
522
523
524
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 518

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:



518
519
520
521
522
523
524
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 518

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. Auto Scaling launches a replacement instance if the instance fails the health check.

Returns:

  • (Boolean)


518
519
520
521
522
523
524
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 518

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)


518
519
520
521
522
523
524
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 518

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