# RedshiftStorageProperty

The details of the Amazon Redshift storage as part of the configuration of an Amazon Redshift data source run.

- Source: Generated at build time
- Type last changed: v2.123.0 · 24 Jan 2024

## Example

TypeScript:

```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:

```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:

```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();
```

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

var redshiftStorageProperty = new RedshiftStorageProperty {
    RedshiftClusterSource = new RedshiftClusterStorageProperty {
        ClusterName = "clusterName"
    },
    RedshiftServerlessSource = new RedshiftServerlessStorageProperty {
        WorkgroupName = "workgroupName"
    }
};
```

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"

redshiftStorageProperty := &RedshiftStorageProperty{
	RedshiftClusterSource: &RedshiftClusterStorageProperty{
		ClusterName: jsii.String("clusterName"),
	},
	RedshiftServerlessSource: &RedshiftServerlessStorageProperty{
		WorkgroupName: jsii.String("workgroupName"),
	},
}
```

## Properties

- `redshiftClusterSource`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.RedshiftClusterStorageProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_datazone.CfnDataSource.RedshiftClusterStorageProperty.html) — The details of the Amazon Redshift cluster source.

- `redshiftServerlessSource`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.RedshiftServerlessStorageProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_datazone.CfnDataSource.RedshiftServerlessStorageProperty.html) — The details of the Amazon Redshift Serverless workgroup source.
