Class CfnInstance.VolumeProperty
Specifies a volume to attach to an instance.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnInstance.VolumeProperty : CfnInstance.IVolumeProperty
Syntax (vb)
Public Class CfnInstance.VolumeProperty 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() | Specifies a volume to attach to an instance. |
Properties
| Device | The device name (for example, |
| VolumeId | The ID of the EBS volume. |
Constructors
VolumeProperty()
Specifies a volume to attach to an instance.
public VolumeProperty()
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"
};
Properties
Device
The device name (for example, /dev/sdh or xvdh ).
public string Device { get; set; }
Property Value
Remarks
VolumeId
The ID of the EBS volume.
public string VolumeId { get; set; }
Property Value
Remarks
The volume and instance must be within the same Availability Zone.