Skip to content
v2.278.0

EngineConfigurationProperty Struct ​

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 .

Example ​

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
# 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
// 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();
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" }
    }
};
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 ​

additionalConfigsoptionalIResolvable | { [key: string]: string }additional_configsoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]additionalConfigsoptionalIResolvableAdditionalConfigsoptionalIResolvableAdditionalConfigsoptionalinterface{} #
Contains additional notebook engine `MAP<string, string>` parameter mappings in the form of key-value pairs.
notes

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.

classificationsoptionalIResolvable | IResolvable | CfnWorkGroup.ClassificationProperty[]classificationsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ClassificationProperty]]]classificationsoptionalIResolvableClassificationsoptionalIResolvableClassificationsoptionalinterface{} #
The configuration classifications that can be specified for the engine.
coordinatorDpuSizeoptionalnumbercoordinator_dpu_sizeoptionalint | floatcoordinatorDpuSizeoptionalNumberCoordinatorDpuSizeoptionaldoubleCoordinatorDpuSizeoptional*float64 #
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.

defaultExecutorDpuSizeoptionalnumberdefault_executor_dpu_sizeoptionalint | floatdefaultExecutorDpuSizeoptionalNumberDefaultExecutorDpuSizeoptionaldoubleDefaultExecutorDpuSizeoptional*float64 #
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.

maxConcurrentDpusoptionalnumbermax_concurrent_dpusoptionalint | floatmaxConcurrentDpusoptionalNumberMaxConcurrentDpusoptionaldoubleMaxConcurrentDpusoptional*float64 #
The maximum number of DPUs that can run concurrently.
sparkPropertiesoptionalIResolvable | { [key: string]: string }spark_propertiesoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]sparkPropertiesoptionalIResolvableSparkPropertiesoptionalIResolvableSparkPropertiesoptionalinterface{} #
Specifies custom jar files and Spark properties for use cases like cluster encryption, table formats, and general Spark tuning.