AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Describes a block device mapping.

Inheritance Hierarchy

System.Object
  Amazon.AutoScaling.Model.BlockDeviceMapping

Namespace: Amazon.AutoScaling.Model
Assembly: AWSSDK.AutoScaling.dll
Version: 3.x.y.z

Syntax

C#
public class BlockDeviceMapping

The BlockDeviceMapping type exposes the following members

Constructors

NameDescription
Public Method BlockDeviceMapping()

Properties

NameTypeDescription
Public Property DeviceName System.String

Gets and sets the property DeviceName.

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.

To define a block device mapping, set the device name and exactly one of the following properties: Ebs, NoDevice, or VirtualName.

Public Property Ebs Amazon.AutoScaling.Model.Ebs

Gets and sets the property Ebs.

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

Public Property NoDevice System.Boolean

Gets and sets the property NoDevice.

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.

Public Property VirtualName System.String

Gets and sets the property VirtualName.

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

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5