@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.411Z") @Stability(value=Stable) 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()
Specifies whether the EBS volume is encrypted.
|
default IKey |
getKmsKey()
The ARN of the AWS Key Management Service (AWS KMS) CMK used for encryption.
|
getDeleteOnTermination, getIops, getVolumeType@Stability(value=Stable) @Nullable default Boolean getEncrypted()
Encrypted EBS volumes can only be attached to instances that support Amazon EBS encryption
Default: false
@Stability(value=Stable) @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=Stable) static EbsDeviceOptions.Builder builder()
builder in interface EbsDeviceOptionsBaseEbsDeviceOptions.Builder of EbsDeviceOptionsCopyright © 2022. All rights reserved.