Interface EbsDeviceProps
- All Superinterfaces:
EbsDeviceOptions
,EbsDeviceOptionsBase
,EbsDeviceSnapshotOptions
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EbsDeviceProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:39.303Z")
@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") .volumeSize(123) .volumeType(EbsDeviceVolumeType.STANDARD) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forEbsDeviceProps
static final class
An implementation forEbsDeviceProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic EbsDeviceProps.Builder
builder()
default Boolean
Indicates whether to delete the volume when the instance is terminated.default Number
getIops()
The number of I/O operations per second (IOPS) to provision for the volume.default String
The snapshot ID of the volume to use.default EbsDeviceVolumeType
The EBS volume type.Methods inherited from interface software.amazon.awscdk.services.ec2.EbsDeviceOptions
getEncrypted, getKmsKey
Methods inherited from interface software.amazon.awscdk.services.ec2.EbsDeviceSnapshotOptions
getVolumeSize
Methods 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:
getDeleteOnTermination
in interfaceEbsDeviceOptionsBase
-
getIops
The number of I/O operations per second (IOPS) to provision for the volume.Must only be set for
invalid @link
volumeType
invalid @link
EbsDeviceVolumeType.IO1
Default: - none, required for
invalid @link
EbsDeviceVolumeType.IO1
- Specified by:
getIops
in interfaceEbsDeviceOptionsBase
- See Also:
-
getVolumeType
The EBS volume type.Default:
invalid @link
EbsDeviceVolumeType.GP2
- Specified by:
getVolumeType
in interfaceEbsDeviceOptionsBase
- See Also:
-
builder
- Returns:
- a
EbsDeviceProps.Builder
ofEbsDeviceProps
-