Interface EbsDeviceOptions
- All Superinterfaces:
EbsDeviceOptionsBase
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EbsDeviceOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-06T23:25:04.689Z")
@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
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.Methods inherited from interface software.amazon.awscdk.services.autoscaling.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:
-
builder
- Returns:
- a
EbsDeviceOptions.Builder
ofEbsDeviceOptions
-