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

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

Overview

Describes a block device mapping.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#device_nameString

The device name assigned to the volume (for example, ‘/dev/sdh` or `xvdh`). For more information, see [Device naming on Linux instances] in the *Amazon EC2 User Guide for Linux Instances*.

<note markdown=“1”> To define a block device mapping, set the device name and exactly one of the following properties: ‘Ebs`, `NoDevice`, or `VirtualName`.

</note>

[1]: docs.aws.amazon.com/AWSEC2/latest/UserGuide/device_naming.html

Returns:

  • (String)


800
801
802
803
804
805
806
807
# File 'lib/aws-sdk-autoscaling/types.rb', line 800

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

#ebsTypes::Ebs

Information to attach an EBS volume to an instance at launch.

Returns:



800
801
802
803
804
805
806
807
# File 'lib/aws-sdk-autoscaling/types.rb', line 800

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

#no_deviceBoolean

Setting this value to ‘true` prevents a volume that is included in the block device mapping of the AMI from being mapped to the specified device name at launch.

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.

Returns:

  • (Boolean)


800
801
802
803
804
805
806
807
# File 'lib/aws-sdk-autoscaling/types.rb', line 800

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

#virtual_nameString

The name of the instance store volume (virtual device) to attach to an instance at launch. The name must be in the form ephemeral*X* where X is a number starting from zero (0), for example, ‘ephemeral0`.

Returns:

  • (String)


800
801
802
803
804
805
806
807
# File 'lib/aws-sdk-autoscaling/types.rb', line 800

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