Interface CfnInstance.IVolumeProperty
Specifies a volume to attach to an instance.
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public interface IVolumeProperty
Syntax (vb)
Public Interface IVolumeProperty
Remarks
Volume
is an embedded property of the AWS::EC2::Instance resource.
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-mount-point.html
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
Properties
Device | The device name (for example, |
VolumeId | The ID of the EBS volume. |
Properties
Device
The device name (for example, /dev/sdh
or xvdh
).
string Device { get; }
Property Value
System.String
Remarks
VolumeId
The ID of the EBS volume.
string VolumeId { get; }
Property Value
System.String
Remarks
The volume and instance must be within the same Availability Zone.