Class CfnInstance.VolumeProperty
Specifies a volume to attach to an instance.
Inheritance
System.Object
CfnInstance.VolumeProperty
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class VolumeProperty : Object, CfnInstance.IVolumeProperty
Syntax (vb)
Public Class VolumeProperty
Inherits Object
Implements CfnInstance.IVolumeProperty
Remarks
Volume
is an embedded property of the AWS::EC2::Instance resource.
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.EC2;
var volumeProperty = new VolumeProperty {
Device = "device",
VolumeId = "volumeId"
};
Synopsis
Constructors
VolumeProperty() |
Properties
Device | The device name (for example, |
VolumeId | The ID of the EBS volume. |
Constructors
VolumeProperty()
public VolumeProperty()
Properties
Device
The device name (for example, /dev/sdh
or xvdh
).
public string Device { get; set; }
Property Value
System.String
Remarks
VolumeId
The ID of the EBS volume.
public string VolumeId { get; set; }
Property Value
System.String
Remarks
The volume and instance must be within the same Availability Zone.