Class VolumeAttributes
Attributes required to import an existing EBS Volume into the Stack.
Inheritance
System.Object
VolumeAttributes
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class VolumeAttributes : Object, IVolumeAttributes
Syntax (vb)
Public Class VolumeAttributes
Inherits Object
Implements 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
Constructors
VolumeAttributes() |
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. |
Constructors
VolumeAttributes()
public VolumeAttributes()
Properties
AvailabilityZone
The availability zone that the EBS Volume is contained within (ex: us-west-2a).
public string AvailabilityZone { get; set; }
Property Value
System.String
EncryptionKey
The customer-managed encryption key that is used to encrypt the Volume.
public IKey EncryptionKey { get; set; }
Property Value
Remarks
Default: None -- The EBS Volume is not using a customer-managed KMS key for encryption.
VolumeId
The EBS Volume's ID.
public string VolumeId { get; set; }
Property Value
System.String