Class BlockDevice
Block device.
Inheritance
System.Object
BlockDevice
Implements
Namespace: Amazon.CDK.AWS.AutoScaling
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class BlockDevice : Object, IBlockDevice
Syntax (vb)
Public Class BlockDevice
Inherits Object
Implements IBlockDevice
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AutoScaling;
BlockDeviceVolume blockDeviceVolume;
var blockDevice = new BlockDevice {
DeviceName = "deviceName",
Volume = blockDeviceVolume
};
Synopsis
Constructors
BlockDevice() |
Properties
DeviceName | The device name exposed to the EC2 instance. |
Volume | Defines the block device volume, to be either an Amazon EBS volume or an ephemeral instance store volume. |
Constructors
BlockDevice()
public BlockDevice()
Properties
DeviceName
The device name exposed to the EC2 instance.
public string DeviceName { get; set; }
Property Value
System.String
Remarks
Supply a value like /dev/sdh
, xvdh
.
See: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/device_naming.html
Volume
Defines the block device volume, to be either an Amazon EBS volume or an ephemeral instance store volume.
public BlockDeviceVolume Volume { get; set; }
Property Value
Remarks
Supply a value like BlockDeviceVolume.ebs(15)
, BlockDeviceVolume.ephemeral(0)
.