Class: Aws::AutoScaling::Types::BlockDeviceMapping
- Inherits:
-
Struct
- Object
- Struct
- Aws::AutoScaling::Types::BlockDeviceMapping
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-autoscaling/types.rb
Overview
Describes a block device mapping.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#device_name ⇒ String
The device name assigned to the volume (for example, ‘/dev/sdh` or `xvdh`).
-
#ebs ⇒ Types::Ebs
Information to attach an EBS volume to an instance at launch.
-
#no_device ⇒ Boolean
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.
-
#virtual_name ⇒ String
The name of the instance store volume (virtual device) to attach to an instance at launch.
Instance Attribute Details
#device_name ⇒ String
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
925 926 927 928 929 930 931 932 |
# File 'lib/aws-sdk-autoscaling/types.rb', line 925 class BlockDeviceMapping < Struct.new( :virtual_name, :device_name, :ebs, :no_device) SENSITIVE = [] include Aws::Structure end |
#ebs ⇒ Types::Ebs
Information to attach an EBS volume to an instance at launch.
925 926 927 928 929 930 931 932 |
# File 'lib/aws-sdk-autoscaling/types.rb', line 925 class BlockDeviceMapping < Struct.new( :virtual_name, :device_name, :ebs, :no_device) SENSITIVE = [] include Aws::Structure end |
#no_device ⇒ Boolean
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.
925 926 927 928 929 930 931 932 |
# File 'lib/aws-sdk-autoscaling/types.rb', line 925 class BlockDeviceMapping < Struct.new( :virtual_name, :device_name, :ebs, :no_device) SENSITIVE = [] include Aws::Structure end |
#virtual_name ⇒ String
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`.
925 926 927 928 929 930 931 932 |
# File 'lib/aws-sdk-autoscaling/types.rb', line 925 class BlockDeviceMapping < Struct.new( :virtual_name, :device_name, :ebs, :no_device) SENSITIVE = [] include Aws::Structure end |