Enum EbsDeviceVolumeType
- All Implemented Interfaces:
Serializable
,Comparable<EbsDeviceVolumeType>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)",
date="2024-07-12T19:34:00.864Z")
@Stability(Stable)
public enum EbsDeviceVolumeType
extends Enum<EbsDeviceVolumeType>
Supported EBS volume types for blockDevices.
Example:
Vpc vpc; Instance instance = Instance.Builder.create(this, "Instance") .instanceType(InstanceType.of(InstanceClass.M5, InstanceSize.XLARGE)) .machineImage(new AmazonLinuxImage()) .vpc(vpc) .hibernationEnabled(true) .blockDevices(List.of(BlockDevice.builder() .deviceName("/dev/xvda") .volume(BlockDeviceVolume.ebs(30, EbsDeviceOptions.builder() .volumeType(EbsDeviceVolumeType.GP3) .encrypted(true) .deleteOnTermination(true) .build())) .build())) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic EbsDeviceVolumeType
Returns the enum constant of this type with the specified name.static EbsDeviceVolumeType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STANDARD
Magnetic. -
IO1
Provisioned IOPS SSD - IO1. -
IO2
Provisioned IOPS SSD - IO2. -
GP2
General Purpose SSD - GP2. -
GP3
General Purpose SSD - GP3. -
ST1
Throughput Optimized HDD. -
SC1
Cold HDD.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-