# EbsBlockDeviceConfigProperty

Configuration of requested EBS block device associated with the instance group with count of volumes that will be associated to every instance.

- 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#L685)

## 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 ebsBlockDeviceConfigProperty: stepfunctions_tasks.EmrCreateCluster.EbsBlockDeviceConfigProperty = {
  volumeSpecification: {
    volumeSize: size,
    volumeType: stepfunctions_tasks.EmrCreateCluster.EbsBlockDeviceVolumeType.GP3,

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

  // the properties below are optional
  volumesPerInstance: 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

ebs_block_device_config_property = stepfunctions_tasks.EmrCreateCluster.EbsBlockDeviceConfigProperty(
    volume_specification=stepfunctions_tasks.EmrCreateCluster.VolumeSpecificationProperty(
        volume_size=size,
        volume_type=stepfunctions_tasks.EmrCreateCluster.EbsBlockDeviceVolumeType.GP3,

        # the properties below are optional
        iops=123
    ),

    # the properties below are optional
    volumes_per_instance=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;

EbsBlockDeviceConfigProperty ebsBlockDeviceConfigProperty = EbsBlockDeviceConfigProperty.builder()
        .volumeSpecification(VolumeSpecificationProperty.builder()
                .volumeSize(size)
                .volumeType(EmrCreateCluster.getEbsBlockDeviceVolumeType().GP3)

                // the properties below are optional
                .iops(123)
                .build())

        // the properties below are optional
        .volumesPerInstance(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 ebsBlockDeviceConfigProperty = new EbsBlockDeviceConfigProperty {
    VolumeSpecification = new VolumeSpecificationProperty {
        VolumeSize = size,
        VolumeType = EmrCreateCluster.EbsBlockDeviceVolumeType.GP3,

        // the properties below are optional
        Iops = 123
    },

    // the properties below are optional
    VolumesPerInstance = 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

ebsBlockDeviceConfigProperty := &EbsBlockDeviceConfigProperty{
	VolumeSpecification: &VolumeSpecificationProperty{
		VolumeSize: size,
		VolumeType: awscdk.Aws_stepfunctions_tasks.EmrCreateCluster.EbsBlockDeviceVolumeType_GP3,

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

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

## Properties

- `volumeSpecification`: [EmrCreateCluster.VolumeSpecificationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions_tasks.EmrCreateCluster.VolumeSpecificationProperty.html) (required) — 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.

- `volumesPerInstance`: number — Number of EBS volumes with a specific volume configuration that will be associated with every instance in the instance group.

  **Default:** EMR selected default
