# EngineVersionProperty

The Athena engine version for running queries, or the PySpark engine version for running sessions.

- 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_athena as athena } from 'aws-cdk-lib';
const engineVersionProperty: athena.CfnWorkGroup.EngineVersionProperty = {
  effectiveEngineVersion: 'effectiveEngineVersion',
  selectedEngineVersion: 'selectedEngineVersion',
};
```

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_version_property = athena.CfnWorkGroup.EngineVersionProperty(
    effective_engine_version="effectiveEngineVersion",
    selected_engine_version="selectedEngineVersion"
)
```

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

EngineVersionProperty engineVersionProperty = EngineVersionProperty.builder()
        .effectiveEngineVersion("effectiveEngineVersion")
        .selectedEngineVersion("selectedEngineVersion")
        .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 engineVersionProperty = new EngineVersionProperty {
    EffectiveEngineVersion = "effectiveEngineVersion",
    SelectedEngineVersion = "selectedEngineVersion"
};
```

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"

engineVersionProperty := &EngineVersionProperty{
	EffectiveEngineVersion: jsii.String("effectiveEngineVersion"),
	SelectedEngineVersion: jsii.String("selectedEngineVersion"),
}
```

## Properties

- `effectiveEngineVersion`: string — Read only.

  The engine version on which the query runs. If the user requests a valid engine version other than Auto, the effective engine version is the same as the engine version that the user requested. If the user requests Auto, the effective engine version is chosen by Athena. When a request to update the engine version is made by a `CreateWorkGroup` or `UpdateWorkGroup` operation, the `EffectiveEngineVersion` field is ignored.

- `selectedEngineVersion`: string — The engine version requested by the user.

  Possible values are determined by the output of `ListEngineVersions` , including AUTO. The default is AUTO.
