VolumeSpecificationProperty Struct
VolumeSpecification is a subproperty of the EbsBlockDeviceConfig property type.
VolumeSecification determines the volume type, IOPS, and size (GiB) for EBS volumes attached to EC2 instances.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_emr as emr } from 'aws-cdk-lib';
const volumeSpecificationProperty: emr.CfnInstanceFleetConfig.VolumeSpecificationProperty = {
sizeInGb: 123,
volumeType: 'volumeType',
// the properties below are optional
iops: 123,
throughput: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_emr as emr
volume_specification_property = emr.CfnInstanceFleetConfig.VolumeSpecificationProperty(
size_in_gb=123,
volume_type="volumeType",
# the properties below are optional
iops=123,
throughput=123
)
java
// 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)
.throughput(123)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EMR;
var volumeSpecificationProperty = new VolumeSpecificationProperty {
SizeInGb = 123,
VolumeType = "volumeType",
// the properties below are optional
Iops = 123,
Throughput = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
volumeSpecificationProperty := &VolumeSpecificationProperty{
SizeInGb: jsii.Number(123),
VolumeType: jsii.String("volumeType"),
// the properties below are optional
Iops: jsii.Number(123),
Throughput: jsii.Number(123),
}
Properties
The number of I/O operations per second (IOPS) that the volume supports.
The volume size, in gibibytes (GiB).
This can be a number from 1 - 1024. If the volume type is EBS-optimized, the minimum value is 10.
throughputoptionalnumberthroughputoptionalint | floatthroughputoptionalNumberThroughputoptionaldoubleThroughputoptional*float64 #The throughput, in mebibyte per second (MiB/s).
This optional parameter can be a number from 125 - 1000 and is valid only for gp3 volumes.
The volume type.
Volume types supported are gp3, gp2, io1, st1, sc1, and standard.