Show / Hide Table of Contents

Class CfnInstance.VolumeProperty

Specifies a volume to attach to an instance.

Inheritance
object
CfnInstance.VolumeProperty
Implements
CfnInstance.IVolumeProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnInstance.VolumeProperty : CfnInstance.IVolumeProperty
Syntax (vb)
Public Class CfnInstance.VolumeProperty Implements 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

Constructors

VolumeProperty()

Specifies a volume to attach to an instance.

Properties

Device

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

VolumeId

The ID of the EBS volume.

Constructors

VolumeProperty()

Specifies a volume to attach to an instance.

public VolumeProperty()
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"
             };

Properties

Device

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

public string Device { get; set; }
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.

public string VolumeId { get; set; }
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

Implements

CfnInstance.IVolumeProperty
Back to top Generated by DocFX