@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:28.994Z") @Stability(value=Experimental) 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()
(experimental) The availability zone that the EBS Volume is contained within (ex: us-west-2a).
|
default IKey |
getEncryptionKey()
(experimental) The customer-managed encryption key that is used to encrypt the Volume.
|
String |
getVolumeId()
(experimental) The EBS Volume's ID.
|
@Stability(value=Experimental) @NotNull String getAvailabilityZone()
@Stability(value=Experimental) @NotNull String getVolumeId()
@Stability(value=Experimental) @Nullable default IKey getEncryptionKey()
Default: None -- The EBS Volume is not using a customer-managed KMS key for encryption.
@Stability(value=Experimental) static VolumeAttributes.Builder builder()
VolumeAttributes.Builder of VolumeAttributesCopyright © 2022. All rights reserved.