Interface VolumeAttributes
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
VolumeAttributes.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:39.550Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forVolumeAttributes
static final class
An implementation forVolumeAttributes
-
Method Summary
Modifier and TypeMethodDescriptionstatic VolumeAttributes.Builder
builder()
The availability zone that the EBS Volume is contained within (ex: us-west-2a).default IKey
The 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.Builder
ofVolumeAttributes
-