# RedshiftDatasetDefinitionProperty

Configuration for Redshift 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 redshiftDatasetDefinitionProperty: sagemaker.CfnProcessingJob.RedshiftDatasetDefinitionProperty = {
  clusterId: 'clusterId',
  clusterRoleArn: 'clusterRoleArn',
  database: 'database',
  dbUser: 'dbUser',
  outputFormat: 'outputFormat',
  outputS3Uri: 'outputS3Uri',
  queryString: 'queryString',

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

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

redshift_dataset_definition_property = sagemaker.CfnProcessingJob.RedshiftDatasetDefinitionProperty(
    cluster_id="clusterId",
    cluster_role_arn="clusterRoleArn",
    database="database",
    db_user="dbUser",
    output_format="outputFormat",
    output_s3_uri="outputS3Uri",
    query_string="queryString",

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

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

RedshiftDatasetDefinitionProperty redshiftDatasetDefinitionProperty = RedshiftDatasetDefinitionProperty.builder()
        .clusterId("clusterId")
        .clusterRoleArn("clusterRoleArn")
        .database("database")
        .dbUser("dbUser")
        .outputFormat("outputFormat")
        .outputS3Uri("outputS3Uri")
        .queryString("queryString")

        // the properties below are optional
        .kmsKeyId("kmsKeyId")
        .outputCompression("outputCompression")
        .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 redshiftDatasetDefinitionProperty = new RedshiftDatasetDefinitionProperty {
    ClusterId = "clusterId",
    ClusterRoleArn = "clusterRoleArn",
    Database = "database",
    DbUser = "dbUser",
    OutputFormat = "outputFormat",
    OutputS3Uri = "outputS3Uri",
    QueryString = "queryString",

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

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"

redshiftDatasetDefinitionProperty := &RedshiftDatasetDefinitionProperty{
	ClusterId: jsii.String("clusterId"),
	ClusterRoleArn: jsii.String("clusterRoleArn"),
	Database: jsii.String("database"),
	DbUser: jsii.String("dbUser"),
	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"),
}
```

## Properties

- `clusterId`: string (required) — The Redshift cluster Identifier.

- `clusterRoleArn`: string (required) — The IAM role attached to your Redshift cluster that Amazon SageMaker uses to generate datasets.

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

- `dbUser`: string (required) — The database user name used in Redshift query execution.

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

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

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

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

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