Show / Hide Table of Contents

Interface CfnInstance.IVolumeProperty

Specifies a volume to attach to an instance.

Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnInstance.IVolumeProperty
Syntax (vb)
Public Interface CfnInstance.IVolumeProperty
Remarks

Volume is an embedded property of the AWS::EC2::Instance resource.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-volume.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, /dev/sdh or xvdh ).

VolumeId

The ID of the 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-properties-ec2-instance-volume.html#cfn-ec2-instance-volume-device

VolumeId

The ID of the EBS volume.

string VolumeId { get; }
Property Value

string

Remarks

The volume and instance must be within the same Availability Zone.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-volume.html#cfn-ec2-instance-volume-volumeid

Back to top Generated by DocFX