# VolumeSpecificationProperty

EBS volume specifications such as volume type, IOPS, and size (GiB) that will be requested for the EBS volume attached to an EC2 instance in the cluster.

- Source: [`aws-stepfunctions-tasks/lib/emr/emr-create-cluster.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/emr/emr-create-cluster.ts#L658)

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
import { aws_stepfunctions_tasks as stepfunctions_tasks } from 'aws-cdk-lib';

declare const size: cdk.Size;
const volumeSpecificationProperty: stepfunctions_tasks.EmrCreateCluster.VolumeSpecificationProperty = {
  volumeSize: size,
  volumeType: stepfunctions_tasks.EmrCreateCluster.EbsBlockDeviceVolumeType.GP3,

  // the properties below are optional
  iops: 123,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
from aws_cdk import aws_stepfunctions_tasks as stepfunctions_tasks

# size: cdk.Size

volume_specification_property = stepfunctions_tasks.EmrCreateCluster.VolumeSpecificationProperty(
    volume_size=size,
    volume_type=stepfunctions_tasks.EmrCreateCluster.EbsBlockDeviceVolumeType.GP3,

    # the properties below are optional
    iops=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.*;
import software.amazon.awscdk.services.stepfunctions.tasks.*;

Size size;

VolumeSpecificationProperty volumeSpecificationProperty = VolumeSpecificationProperty.builder()
        .volumeSize(size)
        .volumeType(EmrCreateCluster.getEbsBlockDeviceVolumeType().GP3)

        // the properties below are optional
        .iops(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;
using Amazon.CDK.AWS.StepFunctions.Tasks;

Size size;

var volumeSpecificationProperty = new VolumeSpecificationProperty {
    VolumeSize = size,
    VolumeType = EmrCreateCluster.EbsBlockDeviceVolumeType.GP3,

    // the properties below are optional
    Iops = 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 cdk "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"

var size Size

volumeSpecificationProperty := &VolumeSpecificationProperty{
	VolumeSize: size,
	VolumeType: awscdk.Aws_stepfunctions_tasks.EmrCreateCluster.EbsBlockDeviceVolumeType_GP3,

	// the properties below are optional
	Iops: jsii.Number(123),
}
```

## Properties

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

  **Default:** EMR selected default

- `volumeSize`: [Size](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Size.html) (required) — The volume size.

  If the volume type is EBS-optimized, the minimum value is 10GiB.
  Maximum size is 1TiB

- `volumeType`: [EmrCreateCluster.EbsBlockDeviceVolumeType](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions_tasks.EmrCreateCluster.EbsBlockDeviceVolumeType.html) (required) — The volume type.

  Volume types supported are gp2, io1, standard.
