@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.506Z") @Stability(value=Stable) public interface VolumeAttributes extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
VolumeAttributes.Builder
A builder for
VolumeAttributes |
static class |
VolumeAttributes.Jsii$Proxy
An implementation for
VolumeAttributes |
| Modifier and Type | Method and Description |
|---|---|
static VolumeAttributes.Builder |
builder() |
String |
getAvailabilityZone()
The availability zone that the EBS Volume is contained within (ex: us-west-2a).
|
default IKey |
getEncryptionKey()
The customer-managed encryption key that is used to encrypt the Volume.
|
String |
getVolumeId()
The EBS Volume's ID.
|
@Stability(value=Stable) @NotNull String getAvailabilityZone()
@Stability(value=Stable) @NotNull String getVolumeId()
@Stability(value=Stable) @Nullable default IKey getEncryptionKey()
Default: None -- The EBS Volume is not using a customer-managed KMS key for encryption.
@Stability(value=Stable) static VolumeAttributes.Builder builder()
VolumeAttributes.Builder of VolumeAttributesCopyright © 2022. All rights reserved.