Interface VolumeAttributes
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
VolumeAttributes.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-12T17:54:12.353Z")
@Stability(Stable)
public interface VolumeAttributes
extends software.amazon.jsii.JsiiSerializable
Attributes required to import an existing EBS Volume into the Stack.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
import software.amazon.awscdk.services.kms.*;
Key key;
VolumeAttributes volumeAttributes = VolumeAttributes.builder()
.availabilityZone("availabilityZone")
.volumeId("volumeId")
// the properties below are optional
.encryptionKey(key)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forVolumeAttributesstatic final classAn implementation forVolumeAttributes -
Method Summary
Modifier and TypeMethodDescriptionstatic VolumeAttributes.Builderbuilder()The availability zone that the EBS Volume is contained within (ex: us-west-2a).default IKeyThe customer-managed encryption key that is used to encrypt the Volume.The EBS Volume's ID.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAvailabilityZone
The availability zone that the EBS Volume is contained within (ex: us-west-2a). -
getVolumeId
The EBS Volume's ID. -
getEncryptionKey
The customer-managed encryption key that is used to encrypt the Volume.Default: None -- The EBS Volume is not using a customer-managed KMS key for encryption.
-
builder
- Returns:
- a
VolumeAttributes.BuilderofVolumeAttributes
-