Show / Hide Table of Contents

Interface IVolumeAttributes

Attributes required to import an existing EBS Volume into the Stack.

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

            Key key;

            var volumeAttributes = new VolumeAttributes {
                AvailabilityZone = "availabilityZone",
                VolumeId = "volumeId",

                // the properties below are optional
                EncryptionKey = key
            };

Synopsis

Properties

AvailabilityZone

The availability zone that the EBS Volume is contained within (ex: us-west-2a).

EncryptionKey

The customer-managed encryption key that is used to encrypt the Volume.

VolumeId

The EBS Volume's ID.

Properties

AvailabilityZone

The availability zone that the EBS Volume is contained within (ex: us-west-2a).

string AvailabilityZone { get; }
Property Value

string

Remarks

ExampleMetadata: fixture=_generated

EncryptionKey

The customer-managed encryption key that is used to encrypt the Volume.

IKey? EncryptionKey { get; }
Property Value

IKey

Remarks

Default: None -- The EBS Volume is not using a customer-managed KMS key for encryption.

VolumeId

The EBS Volume's ID.

string VolumeId { get; }
Property Value

string

Remarks

ExampleMetadata: fixture=_generated

Back to top Generated by DocFX