# AthenaDatasetDefinitionProperty

Configuration for Athena Dataset Definition input.

- Source: Generated at build time
- Type last changed: v2.211.0 · 13 Aug 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_sagemaker as sagemaker } from 'aws-cdk-lib';
const athenaDatasetDefinitionProperty: sagemaker.CfnProcessingJob.AthenaDatasetDefinitionProperty = {
  catalog: 'catalog',
  database: 'database',
  outputFormat: 'outputFormat',
  outputS3Uri: 'outputS3Uri',
  queryString: 'queryString',

  // the properties below are optional
  kmsKeyId: 'kmsKeyId',
  outputCompression: 'outputCompression',
  workGroup: 'workGroup',
};
```

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_sagemaker as sagemaker

athena_dataset_definition_property = sagemaker.CfnProcessingJob.AthenaDatasetDefinitionProperty(
    catalog="catalog",
    database="database",
    output_format="outputFormat",
    output_s3_uri="outputS3Uri",
    query_string="queryString",

    # the properties below are optional
    kms_key_id="kmsKeyId",
    output_compression="outputCompression",
    work_group="workGroup"
)
```

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

AthenaDatasetDefinitionProperty athenaDatasetDefinitionProperty = AthenaDatasetDefinitionProperty.builder()
        .catalog("catalog")
        .database("database")
        .outputFormat("outputFormat")
        .outputS3Uri("outputS3Uri")
        .queryString("queryString")

        // the properties below are optional
        .kmsKeyId("kmsKeyId")
        .outputCompression("outputCompression")
        .workGroup("workGroup")
        .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.Sagemaker;

var athenaDatasetDefinitionProperty = new AthenaDatasetDefinitionProperty {
    Catalog = "catalog",
    Database = "database",
    OutputFormat = "outputFormat",
    OutputS3Uri = "outputS3Uri",
    QueryString = "queryString",

    // the properties below are optional
    KmsKeyId = "kmsKeyId",
    OutputCompression = "outputCompression",
    WorkGroup = "workGroup"
};
```

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"

athenaDatasetDefinitionProperty := &AthenaDatasetDefinitionProperty{
	Catalog: jsii.String("catalog"),
	Database: jsii.String("database"),
	OutputFormat: jsii.String("outputFormat"),
	OutputS3Uri: jsii.String("outputS3Uri"),
	QueryString: jsii.String("queryString"),

	// the properties below are optional
	KmsKeyId: jsii.String("kmsKeyId"),
	OutputCompression: jsii.String("outputCompression"),
	WorkGroup: jsii.String("workGroup"),
}
```

## Properties

- `catalog`: string (required) — The name of the data catalog used in Athena query execution.

- `database`: string (required) — The name of the database used in the Athena query execution.

- `kmsKeyId`: string — The AWS Key Management Service ( AWS KMS) key that Amazon SageMaker uses to encrypt data generated from an Athena query execution.

- `outputCompression`: string — The compression used for Athena query results.

- `outputFormat`: string (required) — The data storage format for Athena query results.

- `outputS3Uri`: string (required) — The location in Amazon S3 where Athena query results are stored.

- `queryString`: string (required) — The SQL query statements, to be executed.

- `workGroup`: string — The name of the workgroup in which the Athena query is being started.
