Class BlockDeviceVolume
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.autoscaling.BlockDeviceVolume
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:45.198Z")
@Stability(Stable)
public class BlockDeviceVolume
extends software.amazon.jsii.JsiiObject
Describes a block device mapping for an EC2 instance or Auto Scaling group.
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.autoscaling.*;
BlockDeviceVolume blockDeviceVolume = BlockDeviceVolume.ebs(123, EbsDeviceOptions.builder()
.deleteOnTermination(false)
.encrypted(false)
.iops(123)
.volumeType(EbsDeviceVolumeType.STANDARD)
.build());
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedBlockDeviceVolume(EbsDeviceProps ebsDevice) protectedBlockDeviceVolume(EbsDeviceProps ebsDevice, String virtualName) protectedBlockDeviceVolume(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedBlockDeviceVolume(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockDeviceVolumeCreates a new Elastic Block Storage device.static BlockDeviceVolumeebs(Number volumeSize, EbsDeviceOptions options) Creates a new Elastic Block Storage device.static BlockDeviceVolumeebsFromSnapshot(String snapshotId) Creates a new Elastic Block Storage device from an existing snapshot.static BlockDeviceVolumeebsFromSnapshot(String snapshotId, EbsDeviceSnapshotOptions options) Creates a new Elastic Block Storage device from an existing snapshot.static BlockDeviceVolumeCreates a virtual, ephemeral device.EBS device info.Virtual device name.static BlockDeviceVolumenoDevice()Supresses a volume mapping.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
BlockDeviceVolume
protected BlockDeviceVolume(software.amazon.jsii.JsiiObjectRef objRef) -
BlockDeviceVolume
protected BlockDeviceVolume(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
BlockDeviceVolume
@Stability(Stable) protected BlockDeviceVolume(@Nullable EbsDeviceProps ebsDevice, @Nullable String virtualName) - Parameters:
ebsDevice- EBS device info.virtualName- Virtual device name.
-
BlockDeviceVolume
- Parameters:
ebsDevice- EBS device info.
-
BlockDeviceVolume
@Stability(Stable) protected BlockDeviceVolume()
-
-
Method Details
-
ebs
@Stability(Stable) @NotNull public static BlockDeviceVolume ebs(@NotNull Number volumeSize, @Nullable EbsDeviceOptions options) Creates a new Elastic Block Storage device.- Parameters:
volumeSize- The volume size, in Gibibytes (GiB). This parameter is required.options- additional device options.
-
ebs
Creates a new Elastic Block Storage device.- Parameters:
volumeSize- The volume size, in Gibibytes (GiB). This parameter is required.
-
ebsFromSnapshot
@Stability(Stable) @NotNull public static BlockDeviceVolume ebsFromSnapshot(@NotNull String snapshotId, @Nullable EbsDeviceSnapshotOptions options) Creates a new Elastic Block Storage device from an existing snapshot.- Parameters:
snapshotId- The snapshot ID of the volume to use. This parameter is required.options- additional device options.
-
ebsFromSnapshot
@Stability(Stable) @NotNull public static BlockDeviceVolume ebsFromSnapshot(@NotNull String snapshotId) Creates a new Elastic Block Storage device from an existing snapshot.- Parameters:
snapshotId- The snapshot ID of the volume to use. This parameter is required.
-
ephemeral
Creates a virtual, ephemeral device.The name will be in the form ephemeral{volumeIndex}.
- Parameters:
volumeIndex- the volume index. This parameter is required.
-
noDevice
Supresses a volume mapping. -
getEbsDevice
EBS device info. -
getVirtualName
Virtual device name.
-