@Stability(value=Stable)
public static interface CfnCluster.VolumeSpecificationProperty
extends software.amazon.jsii.JsiiSerializable
VolumeSecification determines the volume type, IOPS, and size (GiB) for EBS volumes attached to EC2 instances.
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.emr.*;
VolumeSpecificationProperty volumeSpecificationProperty = VolumeSpecificationProperty.builder()
.sizeInGb(123)
.volumeType("volumeType")
// the properties below are optional
.iops(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnCluster.VolumeSpecificationProperty.Builder
A builder for
CfnCluster.VolumeSpecificationProperty |
static class |
CfnCluster.VolumeSpecificationProperty.Jsii$Proxy
An implementation for
CfnCluster.VolumeSpecificationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnCluster.VolumeSpecificationProperty.Builder |
builder() |
default Number |
getIops()
The number of I/O operations per second (IOPS) that the volume supports.
|
Number |
getSizeInGb()
The volume size, in gibibytes (GiB).
|
String |
getVolumeType()
The volume type.
|
@Stability(value=Stable) @NotNull Number getSizeInGb()
This can be a number from 1 - 1024. If the volume type is EBS-optimized, the minimum value is 10.
@Stability(value=Stable) @NotNull String getVolumeType()
Volume types supported are gp2, io1, standard sc1, st1 and gp3. For gp3, customer will be able to configure IOPs but not throughput. Throughput will default to 125 MiB/s.
@Stability(value=Stable) @Nullable default Number getIops()
IOPS parameters are supported for volumes: io1 and gp3. Among them, IOPS parameters are required for volumes io1 but optional for volumes gp3 which default to 3000 IOPS. IOPS parameters are not supported for volumes: gp2, standard, st1 and sc1.
@Stability(value=Stable) static CfnCluster.VolumeSpecificationProperty.Builder builder()
Copyright © 2022. All rights reserved.