Class CfnVolumeAttachmentProps
Properties for defining a CfnVolumeAttachment
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnVolumeAttachmentProps : Object, ICfnVolumeAttachmentProps
Syntax (vb)
Public Class CfnVolumeAttachmentProps
Inherits Object
Implements ICfnVolumeAttachmentProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-volumeattachment.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 cfnVolumeAttachmentProps = new CfnVolumeAttachmentProps {
InstanceId = "instanceId",
VolumeId = "volumeId",
// the properties below are optional
Device = "device"
};
Synopsis
Constructors
CfnVolumeAttachmentProps() |
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. |
Constructors
CfnVolumeAttachmentProps()
public CfnVolumeAttachmentProps()
Properties
Device
The device name (for example, /dev/sdh
or xvdh
).
public string Device { get; set; }
Property Value
System.String
Remarks
InstanceId
The ID of the instance to which the volume attaches.
public string InstanceId { get; set; }
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.
public string VolumeId { get; set; }
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.