Interface EbsDeviceOptions

All Superinterfaces:
EbsDeviceOptionsBase, software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
EbsDeviceProps
All Known Implementing Classes:
EbsDeviceOptions.Jsii$Proxy, EbsDeviceProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-12T19:34:00.861Z") @Stability(Stable) public interface EbsDeviceOptions extends software.amazon.jsii.JsiiSerializable, EbsDeviceOptionsBase
Block device options for an EBS volume.

Example:

 import software.amazon.awscdk.services.kms.Key;
 Vpc vpc;
 InstanceType instanceType;
 IMachineImage machineImage;
 Key kmsKey = new Key(this, "KmsKey");
 Instance.Builder.create(this, "Instance")
         .vpc(vpc)
         .instanceType(instanceType)
         .machineImage(machineImage)
         // ...
         .blockDevices(List.of(BlockDevice.builder()
                 .deviceName("/dev/sda1")
                 .volume(BlockDeviceVolume.ebs(50, EbsDeviceOptions.builder()
                         .encrypted(true)
                         .kmsKey(kmsKey)
                         .build()))
                 .build()))
         .build();