@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:46.883Z") @Stability(value=Experimental) public interface EbsDeviceOptions extends software.amazon.jsii.JsiiSerializable, EbsDeviceOptionsBase
Example:
BastionHostLinux host = BastionHostLinux.Builder.create(this, "BastionHost")
.vpc(vpc)
.blockDevices(List.of(BlockDevice.builder()
.deviceName("EBSBastionHost")
.volume(BlockDeviceVolume.ebs(10, EbsDeviceOptions.builder()
.encrypted(true)
.build()))
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
EbsDeviceOptions.Builder
A builder for
EbsDeviceOptions |
static class |
EbsDeviceOptions.Jsii$Proxy
An implementation for
EbsDeviceOptions |
| Modifier and Type | Method and Description |
|---|---|
static EbsDeviceOptions.Builder |
builder() |
default Boolean |
getEncrypted()
(experimental) Specifies whether the EBS volume is encrypted.
|
default IKey |
getKmsKey()
(experimental) The ARN of the AWS Key Management Service (AWS KMS) CMK used for encryption.
|
getDeleteOnTermination, getIops, getVolumeType@Stability(value=Experimental) @Nullable default Boolean getEncrypted()
Encrypted EBS volumes can only be attached to instances that support Amazon EBS encryption
Default: false
@Stability(value=Experimental) @Nullable default IKey getKmsKey()
You have to ensure that the KMS CMK has the correct permissions to be used by the service launching the ec2 instances.
Default: - If encrypted is true, the default aws/ebs KMS key will be used.
@Stability(value=Experimental) static EbsDeviceOptions.Builder builder()
builder in interface EbsDeviceOptionsBaseEbsDeviceOptions.Builder of EbsDeviceOptionsCopyright © 2022. All rights reserved.