# EbsConfigurationProperty

The Amazon EBS configuration of a cluster instance.

- 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 ebsConfigurationProperty: emr.CfnInstanceGroupConfig.EbsConfigurationProperty = {
  ebsBlockDeviceConfigs: [{
    volumeSpecification: {
      sizeInGb: 123,
      volumeType: 'volumeType',

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

    // the properties below are optional
    volumesPerInstance: 123,
  }],
  ebsOptimized: false,
};
```

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

ebs_configuration_property = emr.CfnInstanceGroupConfig.EbsConfigurationProperty(
    ebs_block_device_configs=[emr.CfnInstanceGroupConfig.EbsBlockDeviceConfigProperty(
        volume_specification=emr.CfnInstanceGroupConfig.VolumeSpecificationProperty(
            size_in_gb=123,
            volume_type="volumeType",

            # the properties below are optional
            iops=123,
            throughput=123
        ),

        # the properties below are optional
        volumes_per_instance=123
    )],
    ebs_optimized=False
)
```

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.*;

EbsConfigurationProperty ebsConfigurationProperty = EbsConfigurationProperty.builder()
        .ebsBlockDeviceConfigs(List.of(EbsBlockDeviceConfigProperty.builder()
                .volumeSpecification(VolumeSpecificationProperty.builder()
                        .sizeInGb(123)
                        .volumeType("volumeType")

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

                // the properties below are optional
                .volumesPerInstance(123)
                .build()))
        .ebsOptimized(false)
        .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 ebsConfigurationProperty = new EbsConfigurationProperty {
    EbsBlockDeviceConfigs = new [] { new EbsBlockDeviceConfigProperty {
        VolumeSpecification = new VolumeSpecificationProperty {
            SizeInGb = 123,
            VolumeType = "volumeType",

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

        // the properties below are optional
        VolumesPerInstance = 123
    } },
    EbsOptimized = false
};
```

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"

ebsConfigurationProperty := &EbsConfigurationProperty{
	EbsBlockDeviceConfigs: []interface{}{
		&EbsBlockDeviceConfigProperty{
			VolumeSpecification: &VolumeSpecificationProperty{
				SizeInGb: jsii.Number(123),
				VolumeType: jsii.String("volumeType"),

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

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

## Properties

- `ebsBlockDeviceConfigs`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnInstanceGroupConfig.EbsBlockDeviceConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_emr.CfnInstanceGroupConfig.EbsBlockDeviceConfigProperty.html)[] — An array of Amazon EBS volume specifications attached to a cluster instance.

- `ebsOptimized`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Indicates whether an Amazon EBS volume is EBS-optimized.

  The default is false. You should explicitly set this value to true to enable the Amazon EBS-optimized setting for an EC2 instance.
