# VolumeSpecificationProperty

`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: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
};
```

Golang:

```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

- `iops`: number — The number of I/O operations per second (IOPS) that the volume supports.

- `sizeInGb`: number (required) — 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.

- `throughput`: number — 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.

- `volumeType`: string (required) — The volume type.

  Volume types supported are gp3, gp2, io1, st1, sc1, and standard.
