Interface EbsDeviceSnapshotOptions
- All Superinterfaces:
EbsDeviceOptionsBase,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
EbsDeviceProps
- All Known Implementing Classes:
EbsDeviceProps.Jsii$Proxy,EbsDeviceSnapshotOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-08-13T16:20:04.909Z")
@Stability(Stable)
public interface EbsDeviceSnapshotOptions
extends software.amazon.jsii.JsiiSerializable, EbsDeviceOptionsBase
Block device options for an EBS volume created from a snapshot.
Example:
LaunchTemplate launchTemplate = LaunchTemplate.Builder.create(this, "LaunchTemplate")
.blockDevices(List.of(BlockDevice.builder()
.deviceName("deviceName")
.volume(BlockDeviceVolume.ebsFromSnapshot("snap-1234567890abcdef0", EbsDeviceSnapshotOptions.builder()
.volumeSize(150)
.volumeInitializationRate(Size.mebibytes(200))
.build()))
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forEbsDeviceSnapshotOptionsstatic final classAn implementation forEbsDeviceSnapshotOptions -
Method Summary
Methods inherited from interface software.amazon.awscdk.services.ec2.EbsDeviceOptionsBase
getDeleteOnTermination, getIops, getThroughput, getVolumeInitializationRate, getVolumeTypeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getVolumeSize
The volume size, in Gibibytes (GiB).If you specify volumeSize, it must be equal or greater than the size of the snapshot.
Default: - The snapshot size
-
builder
- Returns:
- a
EbsDeviceSnapshotOptions.BuilderofEbsDeviceSnapshotOptions
-