Interface EbsDeviceOptions
- All Superinterfaces:
EbsDeviceOptionsBase,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EbsDeviceOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:15.123Z")
@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;
AutoScalingGroup autoScalingGroup = AutoScalingGroup.Builder.create(this, "ASG")
.vpc(vpc)
.instanceType(instanceType)
.machineImage(machineImage)
.blockDevices(List.of(BlockDevice.builder()
.deviceName("gp3-volume")
.volume(BlockDeviceVolume.ebs(15, EbsDeviceOptions.builder()
.volumeType(EbsDeviceVolumeType.GP3)
.throughput(125)
.build()))
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forEbsDeviceOptionsstatic final classAn implementation forEbsDeviceOptions -
Method Summary
Modifier and TypeMethodDescriptionstatic EbsDeviceOptions.Builderbuilder()default BooleanSpecifies whether the EBS volume is encrypted.Methods inherited from interface software.amazon.awscdk.services.autoscaling.EbsDeviceOptionsBase
getDeleteOnTermination, getIops, getThroughput, getVolumeTypeMethods 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:
-
builder
- Returns:
- a
EbsDeviceOptions.BuilderofEbsDeviceOptions
-