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.104.0 (build e79254c)",
date="2025-01-15T21:09:18.149Z")
@Stability(Stable)
public interface EbsDeviceOptions
extends software.amazon.jsii.JsiiSerializable, EbsDeviceOptionsBase
Block device options for an EBS volume.
Example:
Vpc vpc; InstanceType instanceType; IMachineImage machineImage; Instance.Builder.create(this, "Instance") .vpc(vpc) .instanceType(instanceType) .machineImage(machineImage) // ... .blockDevices(List.of(BlockDevice.builder() .deviceName("/dev/sda1") .volume(BlockDeviceVolume.ebs(100, EbsDeviceOptions.builder() .volumeType(EbsDeviceVolumeType.GP3) .throughput(250) .build())) .build())) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forEbsDeviceOptions
static final class
An implementation forEbsDeviceOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic EbsDeviceOptions.Builder
builder()
default Boolean
Specifies whether the EBS volume is encrypted.default IKey
The ARN of the AWS Key Management Service (AWS KMS) CMK used for encryption.Methods inherited from interface software.amazon.awscdk.services.ec2.EbsDeviceOptionsBase
getDeleteOnTermination, getIops, getThroughput, getVolumeType
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEncrypted
Specifies whether the EBS volume is encrypted.Encrypted EBS volumes can only be attached to instances that support Amazon EBS encryption
Default: false
- See Also:
-
getKmsKey
The ARN of the AWS Key Management Service (AWS KMS) CMK used for encryption.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.
- See Also:
-
builder
- Returns:
- a
EbsDeviceOptions.Builder
ofEbsDeviceOptions
-