@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-20T22:19:59.388Z") public interface EbsDeviceOptions extends 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 java.lang.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
default java.lang.Boolean getEncrypted()
Encrypted EBS volumes can only be attached to instances that support Amazon EBS encryption
Default: false
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html#EBSEncryption_supported_instances
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.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html#ebs-encryption-requirements
static EbsDeviceOptions.Builder builder()
builder
in interface EbsDeviceOptionsBase
EbsDeviceOptions.Builder
of EbsDeviceOptions