RedshiftDatasetDefinitionProperty Struct
Configuration for Redshift Dataset Definition input.
| Source | |
|---|---|
| Type last changed |
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',
};
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
// 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();
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"
};
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
The Redshift cluster Identifier.
clusterRoleArnstringcluster_role_arnstrclusterRoleArnStringClusterRoleArnstringClusterRoleArn*string required #The IAM role attached to your Redshift cluster that Amazon SageMaker uses to generate datasets.
The name of the Redshift database used in Redshift query execution.
The database user name used in Redshift query execution.
kmsKeyIdoptionalstringkms_key_idoptionalstrkmsKeyIdoptionalStringKmsKeyIdoptionalstringKmsKeyIdoptional*string #The AWS Key Management Service ( AWS KMS) key that Amazon SageMaker uses to encrypt data from a Redshift execution.
outputCompressionoptionalstringoutput_compressionoptionalstroutputCompressionoptionalStringOutputCompressionoptionalstringOutputCompressionoptional*string #The compression used for Redshift query results.
outputFormatstringoutput_formatstroutputFormatStringOutputFormatstringOutputFormat*string required #The data storage format for Redshift query results.
The location in Amazon S3 where the Redshift query results are stored.
The SQL query statements to be executed.