Show / Hide Table of Contents

Interface ICfnVolumeAttachmentProps

Properties for defining a CfnVolumeAttachment.

Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnVolumeAttachmentProps
Syntax (vb)
Public Interface 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

Properties

Device

The device name (for example, /dev/sdh or xvdh ).

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

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-volumeattachment.html#cfn-ec2-volumeattachment-device

InstanceId

The ID of the instance to which the volume attaches.

object InstanceId { get; }
Property Value

object

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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-volumeattachment.html#cfn-ec2-volumeattachment-instanceid

Type union: either string or IInstanceRef

VolumeId

The ID of the Amazon EBS volume.

object VolumeId { get; }
Property Value

object

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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-volumeattachment.html#cfn-ec2-volumeattachment-volumeid

Type union: either string or IVolumeRef

Back to top Generated by DocFX