@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.728Z") @Stability(value=Stable) public class BlockDeviceVolume extends software.amazon.jsii.JsiiObject
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());
| Modifier | Constructor and Description |
|---|---|
protected |
BlockDeviceVolume() |
protected |
BlockDeviceVolume(EbsDeviceProps ebsDevice) |
protected |
BlockDeviceVolume(EbsDeviceProps ebsDevice,
String virtualName) |
protected |
BlockDeviceVolume(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
BlockDeviceVolume(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static BlockDeviceVolume |
ebs(Number volumeSize)
Creates a new Elastic Block Storage device.
|
static BlockDeviceVolume |
ebs(Number volumeSize,
EbsDeviceOptions options)
Creates a new Elastic Block Storage device.
|
static BlockDeviceVolume |
ebsFromSnapshot(String snapshotId)
Creates a new Elastic Block Storage device from an existing snapshot.
|
static BlockDeviceVolume |
ebsFromSnapshot(String snapshotId,
EbsDeviceSnapshotOptions options)
Creates a new Elastic Block Storage device from an existing snapshot.
|
static BlockDeviceVolume |
ephemeral(Number volumeIndex)
Creates a virtual, ephemeral device.
|
EbsDeviceProps |
getEbsDevice()
EBS device info.
|
String |
getVirtualName()
Virtual device name.
|
static BlockDeviceVolume |
noDevice()
Supresses a volume mapping.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected BlockDeviceVolume(software.amazon.jsii.JsiiObjectRef objRef)
protected BlockDeviceVolume(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
protected BlockDeviceVolume(@Nullable
EbsDeviceProps ebsDevice,
@Nullable
String virtualName)
ebsDevice - EBS device info.virtualName - Virtual device name.@Stability(value=Stable)
protected BlockDeviceVolume(@Nullable
EbsDeviceProps ebsDevice)
ebsDevice - EBS device info.@Stability(value=Stable) protected BlockDeviceVolume()
@Stability(value=Stable) @NotNull public static BlockDeviceVolume ebs(@NotNull Number volumeSize, @Nullable EbsDeviceOptions options)
volumeSize - The volume size, in Gibibytes (GiB). This parameter is required.options - additional device options.@Stability(value=Stable) @NotNull public static BlockDeviceVolume ebs(@NotNull Number volumeSize)
volumeSize - The volume size, in Gibibytes (GiB). This parameter is required.@Stability(value=Stable) @NotNull public static BlockDeviceVolume ebsFromSnapshot(@NotNull String snapshotId, @Nullable EbsDeviceSnapshotOptions options)
snapshotId - The snapshot ID of the volume to use. This parameter is required.options - additional device options.@Stability(value=Stable) @NotNull public static BlockDeviceVolume ebsFromSnapshot(@NotNull String snapshotId)
snapshotId - The snapshot ID of the volume to use. This parameter is required.@Stability(value=Stable) @NotNull public static BlockDeviceVolume ephemeral(@NotNull Number volumeIndex)
The name will be in the form ephemeral{volumeIndex}.
volumeIndex - the volume index. This parameter is required.@Stability(value=Stable) @NotNull public static BlockDeviceVolume noDevice()
@Stability(value=Stable) @Nullable public EbsDeviceProps getEbsDevice()
@Stability(value=Stable) @Nullable public String getVirtualName()
Copyright © 2022. All rights reserved.