Skip to content
v2.278.0

AthenaDatasetDefinitionProperty Struct ​

Configuration for Athena Dataset Definition input.

Example ​

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

catalogstringcatalogstrcatalogStringCatalogstringCatalog*string required #
The name of the data catalog used in Athena query execution.
databasestringdatabasestrdatabaseStringDatabasestringDatabase*string required #
The name of the database used in the Athena query execution.
kmsKeyIdoptionalstringkms_key_idoptionalstrkmsKeyIdoptionalStringKmsKeyIdoptionalstringKmsKeyIdoptional*string #
The AWS Key Management Service ( AWS KMS) key that Amazon SageMaker uses to encrypt data generated from an Athena query execution.
outputCompressionoptionalstringoutput_compressionoptionalstroutputCompressionoptionalStringOutputCompressionoptionalstringOutputCompressionoptional*string #
The compression used for Athena query results.
outputFormatstringoutput_formatstroutputFormatStringOutputFormatstringOutputFormat*string required #
The data storage format for Athena query results.
outputS3Uristringoutput_s3_uristroutputS3UriStringOutputS3UristringOutputS3Uri*string required #
The location in Amazon S3 where Athena query results are stored.
queryStringstringquery_stringstrqueryStringStringQueryStringstringQueryString*string required #
The SQL query statements, to be executed.
workGroupoptionalstringwork_groupoptionalstrworkGroupoptionalStringWorkGroupoptionalstringWorkGroupoptional*string #
The name of the workgroup in which the Athena query is being started.