Interface ICfnVolumeAttachmentProps
Properties for defining a CfnVolumeAttachment
.
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public interface ICfnVolumeAttachmentProps
Syntax (vb)
Public Interface ICfnVolumeAttachmentProps
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.EC2;
var cfnVolumeAttachmentProps = new CfnVolumeAttachmentProps {
Device = "device",
InstanceId = "instanceId",
VolumeId = "volumeId"
};
Synopsis
Properties
Device | The device name (for example, |
InstanceId | The ID of the instance to which the volume attaches. |
VolumeId | The ID of the Amazon EBS volume. |
Properties
Device
The device name (for example, /dev/sdh
or xvdh
).
string Device { get; }
Property Value
System.String
Remarks
InstanceId
The ID of the instance to which the volume attaches.
string InstanceId { get; }
Property Value
System.String
Remarks
This value can be a reference to an AWS::EC2::Instance
resource, or it can be the physical ID of an existing EC2 instance.
VolumeId
The ID of the Amazon EBS volume.
string VolumeId { get; }
Property Value
System.String
Remarks
The volume and instance must be within the same Availability Zone. This value can be a reference to an AWS::EC2::Volume
resource, or it can be the volume ID of an existing Amazon EBS volume.