# EngineConfigurationProperty

The engine configuration for the workgroup, which includes the minimum/maximum number of Data Processing Units (DPU) that queries should use when running in provisioned capacity.

If not specified, Athena uses default values (Default value for min is 4 and for max is Minimum of 124 and allocated DPUs).

To specify DPU values for PC queries the WG containing EngineConfiguration should have the following values: The name of the Classifications should be `athena-query-engine-properties` , with the only allowed properties as `max-dpu-count` and `min-dpu-count` .

- Source: Generated at build time
- Type last changed: v2.230.0 · 26 Nov 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_athena as athena } from 'aws-cdk-lib';
const engineConfigurationProperty: athena.CfnWorkGroup.EngineConfigurationProperty = {
  additionalConfigs: {
    additionalConfigsKey: 'additionalConfigs',
  },
  classifications: [{
    name: 'name',
    properties: {
      propertiesKey: 'properties',
    },
  }],
  coordinatorDpuSize: 123,
  defaultExecutorDpuSize: 123,
  maxConcurrentDpus: 123,
  sparkProperties: {
    sparkPropertiesKey: 'sparkProperties',
  },
};
```

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_athena as athena

engine_configuration_property = athena.CfnWorkGroup.EngineConfigurationProperty(
    additional_configs={
        "additional_configs_key": "additionalConfigs"
    },
    classifications=[athena.CfnWorkGroup.ClassificationProperty(
        name="name",
        properties={
            "properties_key": "properties"
        }
    )],
    coordinator_dpu_size=123,
    default_executor_dpu_size=123,
    max_concurrent_dpus=123,
    spark_properties={
        "spark_properties_key": "sparkProperties"
    }
)
```

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

EngineConfigurationProperty engineConfigurationProperty = EngineConfigurationProperty.builder()
        .additionalConfigs(Map.of(
                "additionalConfigsKey", "additionalConfigs"))
        .classifications(List.of(ClassificationProperty.builder()
                .name("name")
                .properties(Map.of(
                        "propertiesKey", "properties"))
                .build()))
        .coordinatorDpuSize(123)
        .defaultExecutorDpuSize(123)
        .maxConcurrentDpus(123)
        .sparkProperties(Map.of(
                "sparkPropertiesKey", "sparkProperties"))
        .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.Athena;

var engineConfigurationProperty = new EngineConfigurationProperty {
    AdditionalConfigs = new Dictionary<string, string> {
        { "additionalConfigsKey", "additionalConfigs" }
    },
    Classifications = new [] { new ClassificationProperty {
        Name = "name",
        Properties = new Dictionary<string, string> {
            { "propertiesKey", "properties" }
        }
    } },
    CoordinatorDpuSize = 123,
    DefaultExecutorDpuSize = 123,
    MaxConcurrentDpus = 123,
    SparkProperties = new Dictionary<string, string> {
        { "sparkPropertiesKey", "sparkProperties" }
    }
};
```

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"

engineConfigurationProperty := &EngineConfigurationProperty{
	AdditionalConfigs: map[string]*string{
		"additionalConfigsKey": jsii.String("additionalConfigs"),
	},
	Classifications: []interface{}{
		&ClassificationProperty{
			Name: jsii.String("name"),
			Properties: map[string]*string{
				"propertiesKey": jsii.String("properties"),
			},
		},
	},
	CoordinatorDpuSize: jsii.Number(123),
	DefaultExecutorDpuSize: jsii.Number(123),
	MaxConcurrentDpus: jsii.Number(123),
	SparkProperties: map[string]*string{
		"sparkPropertiesKey": jsii.String("sparkProperties"),
	},
}
```

## Properties

- `additionalConfigs`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: string } — Contains additional notebook engine `MAP<string, string>` parameter mappings in the form of key-value pairs.

  To specify an Athena notebook that the Jupyter server will download and serve, specify a value for the `StartSessionRequest$NotebookVersion` field, and then add a key named `NotebookId` to `AdditionalConfigs` that has the value of the Athena notebook ID.

- `classifications`: [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) | [CfnWorkGroup.ClassificationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_athena.CfnWorkGroup.ClassificationProperty.html)[] — The configuration classifications that can be specified for the engine.

- `coordinatorDpuSize`: number — The number of DPUs to use for the coordinator.

  A coordinator is a special executor that orchestrates processing work and manages other executors in a notebook session. The default is 1.

- `defaultExecutorDpuSize`: number — The default number of DPUs to use for executors.

  An executor is the smallest unit of compute that a notebook session can request from Athena. The default is 1.

- `maxConcurrentDpus`: number — The maximum number of DPUs that can run concurrently.

- `sparkProperties`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: string } — Specifies custom jar files and Spark properties for use cases like cluster encryption, table formats, and general Spark tuning.
