# RedshiftDatasetDefinitionProperty

Configuration for Redshift Dataset Definition input.

- Source: Generated code
- Type last changed: v2.211.0 · 13 Aug 2025

## 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 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',
};
```

## 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.
