Class CfnInstance.BlockDeviceMappingProperty
Describes a block device mapping.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.OpsWorks
Assembly: Amazon.CDK.AWS.OpsWorks.dll
Syntax (csharp)
public class BlockDeviceMappingProperty : Object, CfnInstance.IBlockDeviceMappingProperty
Syntax (vb)
Public Class BlockDeviceMappingProperty
Inherits Object
Implements CfnInstance.IBlockDeviceMappingProperty
Remarks
This data type maps directly to the Amazon EC2 BlockDeviceMapping data type.
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.OpsWorks;
var blockDeviceMappingProperty = new BlockDeviceMappingProperty {
DeviceName = "deviceName",
Ebs = new EbsBlockDeviceProperty {
DeleteOnTermination = false,
Iops = 123,
SnapshotId = "snapshotId",
VolumeSize = 123,
VolumeType = "volumeType"
},
NoDevice = "noDevice",
VirtualName = "virtualName"
};
Synopsis
Constructors
BlockDeviceMappingProperty() |
Properties
DeviceName | The device name that is exposed to the instance, such as |
Ebs | An |
NoDevice | Suppresses the specified device included in the AMI's block device mapping. |
VirtualName | The virtual device name. |
Constructors
BlockDeviceMappingProperty()
public BlockDeviceMappingProperty()
Properties
DeviceName
The device name that is exposed to the instance, such as /dev/sdh
.
public string DeviceName { get; set; }
Property Value
System.String
Remarks
For the root device, you can use the explicit device name or you can set this parameter to ROOT_DEVICE
and AWS OpsWorks Stacks will provide the correct device name.
Ebs
An EBSBlockDevice
that defines how to configure an Amazon EBS volume when the instance is launched.
public object Ebs { get; set; }
Property Value
System.Object
Remarks
You can specify either the VirtualName
or Ebs
, but not both.
NoDevice
Suppresses the specified device included in the AMI's block device mapping.
public string NoDevice { get; set; }
Property Value
System.String
Remarks
VirtualName
The virtual device name.
public string VirtualName { get; set; }
Property Value
System.String
Remarks
For more information, see BlockDeviceMapping . You can specify either the VirtualName
or Ebs
, but not both.