Interface EbsDeviceProps
- All Superinterfaces:
EbsDeviceOptions,EbsDeviceOptionsBase,EbsDeviceSnapshotOptions,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EbsDeviceProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.126.0 (build 206d44b)",
date="2026-02-09T14:39:09.796Z")
@Stability(Stable)
public interface EbsDeviceProps
extends software.amazon.jsii.JsiiSerializable, EbsDeviceSnapshotOptions, EbsDeviceOptions
Properties of an EBS block device.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
import software.amazon.awscdk.services.kms.*;
Key key;
EbsDeviceProps ebsDeviceProps = EbsDeviceProps.builder()
.deleteOnTermination(false)
.encrypted(false)
.iops(123)
.kmsKey(key)
.snapshotId("snapshotId")
.throughput(123)
.volumeSize(123)
.volumeType(EbsDeviceVolumeType.STANDARD)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forEbsDevicePropsstatic final classAn implementation forEbsDeviceProps -
Method Summary
Modifier and TypeMethodDescriptionstatic EbsDeviceProps.Builderbuilder()default StringThe snapshot ID of the volume to use.Methods inherited from interface software.amazon.awscdk.services.ec2.EbsDeviceOptions
getEncrypted, getKmsKeyMethods inherited from interface software.amazon.awscdk.services.ec2.EbsDeviceOptionsBase
getDeleteOnTermination, getIops, getThroughput, getVolumeTypeMethods inherited from interface software.amazon.awscdk.services.ec2.EbsDeviceSnapshotOptions
getVolumeSizeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getSnapshotId
The snapshot ID of the volume to use.Default: - No snapshot will be used
-
builder
- Returns:
- a
EbsDeviceProps.BuilderofEbsDeviceProps
-