Interface EbsDeviceProps
- All Superinterfaces:
EbsDeviceOptions,EbsDeviceOptionsBase,EbsDeviceSnapshotOptions,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EbsDeviceProps.Jsii$Proxy
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 BooleanIndicates whether to delete the volume when the instance is terminated.default NumbergetIops()The number of I/O operations per second (IOPS) to provision for the volume.default StringThe snapshot ID of the volume to use.default NumberThe throughput to provision for agp3volume.default EbsDeviceVolumeTypeThe EBS volume type.Methods inherited from interface software.amazon.awscdk.services.ec2.EbsDeviceOptions
getEncrypted, getKmsKeyMethods 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
-
getDeleteOnTermination
Indicates whether to delete the volume when the instance is terminated.Default: - true for Amazon EC2 Auto Scaling, false otherwise (e.g. EBS)
- Specified by:
getDeleteOnTerminationin interfaceEbsDeviceOptionsBase
-
getIops
The number of I/O operations per second (IOPS) to provision for the volume.Must only be set for
volumeType:EbsDeviceVolumeType.IO1The maximum ratio of IOPS to volume size (in GiB) is 50:1, so for 5,000 provisioned IOPS, you need at least 100 GiB storage on the volume.
Default: - none, required for `EbsDeviceVolumeType.IO1`
- Specified by:
getIopsin interfaceEbsDeviceOptionsBase- See Also:
-
getThroughput
The throughput to provision for agp3volume.Valid Range: Minimum value of 125. Maximum value of 2000.
gp3volumes deliver a consistent baseline throughput performance of 125 MiB/s. You can provision additional throughput for an additional cost at a ratio of 0.25 MiB/s per provisioned IOPS.Default: - 125 MiB/s.
- Specified by:
getThroughputin interfaceEbsDeviceOptionsBase- See Also:
-
getVolumeType
The EBS volume type.Default: `EbsDeviceVolumeType.GENERAL_PURPOSE_SSD` or `EbsDeviceVolumeType.GENERAL_PURPOSE_SSD_GP3` if `@aws-cdk/aws-ec2:ebsDefaultGp3Volume` is enabled.
- Specified by:
getVolumeTypein interfaceEbsDeviceOptionsBase- See Also:
-
builder
- Returns:
- a
EbsDeviceProps.BuilderofEbsDeviceProps
-