RedshiftStorageProperty Struct
The details of the Amazon Redshift storage as part of the configuration of an Amazon Redshift data source run.
| 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_datazone as datazone } from 'aws-cdk-lib';
const redshiftStorageProperty: datazone.CfnDataSource.RedshiftStorageProperty = {
redshiftClusterSource: {
clusterName: 'clusterName',
},
redshiftServerlessSource: {
workgroupName: 'workgroupName',
},
};
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_datazone as datazone
redshift_storage_property = datazone.CfnDataSource.RedshiftStorageProperty(
redshift_cluster_source=datazone.CfnDataSource.RedshiftClusterStorageProperty(
cluster_name="clusterName"
),
redshift_serverless_source=datazone.CfnDataSource.RedshiftServerlessStorageProperty(
workgroup_name="workgroupName"
)
)
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.datazone.*;
RedshiftStorageProperty redshiftStorageProperty = RedshiftStorageProperty.builder()
.redshiftClusterSource(RedshiftClusterStorageProperty.builder()
.clusterName("clusterName")
.build())
.redshiftServerlessSource(RedshiftServerlessStorageProperty.builder()
.workgroupName("workgroupName")
.build())
.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.DataZone;
var redshiftStorageProperty = new RedshiftStorageProperty {
RedshiftClusterSource = new RedshiftClusterStorageProperty {
ClusterName = "clusterName"
},
RedshiftServerlessSource = new RedshiftServerlessStorageProperty {
WorkgroupName = "workgroupName"
}
};
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"
redshiftStorageProperty := &RedshiftStorageProperty{
RedshiftClusterSource: &RedshiftClusterStorageProperty{
ClusterName: jsii.String("clusterName"),
},
RedshiftServerlessSource: &RedshiftServerlessStorageProperty{
WorkgroupName: jsii.String("workgroupName"),
},
}
Properties
redshiftClusterSourceoptionalIResolvable | CfnDataSource.redshift_cluster_sourceoptionaltyping.Union[IResolvable, RedshiftClusterStorageProperty]redshiftClusterSourceoptionalIResolvableRedshiftClusterSourceoptionalIResolvableRedshiftClusterSourceoptionalinterface{} #The details of the Amazon Redshift cluster source.
redshiftServerlessSourceoptionalIResolvable | CfnDataSource.redshift_serverless_sourceoptionaltyping.Union[IResolvable, RedshiftServerlessStorageProperty]redshiftServerlessSourceoptionalIResolvableRedshiftServerlessSourceoptionalIResolvableRedshiftServerlessSourceoptionalinterface{} #The details of the Amazon Redshift Serverless workgroup source.