# RedshiftRunConfigurationInputProperty

The relational filter configurations included in the configuration details of the Amazon Redshift data source.

- Source: Generated at build time
- Type last changed: v2.177.0 · 25 Jan 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_datazone as datazone } from 'aws-cdk-lib';
const redshiftRunConfigurationInputProperty: datazone.CfnDataSource.RedshiftRunConfigurationInputProperty = {
  relationalFilterConfigurations: [{
    databaseName: 'databaseName',

    // the properties below are optional
    filterExpressions: [{
      expression: 'expression',
      type: 'type',
    }],
    schemaName: 'schemaName',
  }],

  // the properties below are optional
  dataAccessRole: 'dataAccessRole',
  redshiftCredentialConfiguration: {
    secretManagerArn: 'secretManagerArn',
  },
  redshiftStorage: {
    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_run_configuration_input_property = datazone.CfnDataSource.RedshiftRunConfigurationInputProperty(
    relational_filter_configurations=[datazone.CfnDataSource.RelationalFilterConfigurationProperty(
        database_name="databaseName",

        # the properties below are optional
        filter_expressions=[datazone.CfnDataSource.FilterExpressionProperty(
            expression="expression",
            type="type"
        )],
        schema_name="schemaName"
    )],

    # the properties below are optional
    data_access_role="dataAccessRole",
    redshift_credential_configuration=datazone.CfnDataSource.RedshiftCredentialConfigurationProperty(
        secret_manager_arn="secretManagerArn"
    ),
    redshift_storage=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.*;

RedshiftRunConfigurationInputProperty redshiftRunConfigurationInputProperty = RedshiftRunConfigurationInputProperty.builder()
        .relationalFilterConfigurations(List.of(RelationalFilterConfigurationProperty.builder()
                .databaseName("databaseName")

                // the properties below are optional
                .filterExpressions(List.of(FilterExpressionProperty.builder()
                        .expression("expression")
                        .type("type")
                        .build()))
                .schemaName("schemaName")
                .build()))

        // the properties below are optional
        .dataAccessRole("dataAccessRole")
        .redshiftCredentialConfiguration(RedshiftCredentialConfigurationProperty.builder()
                .secretManagerArn("secretManagerArn")
                .build())
        .redshiftStorage(RedshiftStorageProperty.builder()
                .redshiftClusterSource(RedshiftClusterStorageProperty.builder()
                        .clusterName("clusterName")
                        .build())
                .redshiftServerlessSource(RedshiftServerlessStorageProperty.builder()
                        .workgroupName("workgroupName")
                        .build())
                .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 redshiftRunConfigurationInputProperty = new RedshiftRunConfigurationInputProperty {
    RelationalFilterConfigurations = new [] { new RelationalFilterConfigurationProperty {
        DatabaseName = "databaseName",

        // the properties below are optional
        FilterExpressions = new [] { new FilterExpressionProperty {
            Expression = "expression",
            Type = "type"
        } },
        SchemaName = "schemaName"
    } },

    // the properties below are optional
    DataAccessRole = "dataAccessRole",
    RedshiftCredentialConfiguration = new RedshiftCredentialConfigurationProperty {
        SecretManagerArn = "secretManagerArn"
    },
    RedshiftStorage = 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"

redshiftRunConfigurationInputProperty := &RedshiftRunConfigurationInputProperty{
	RelationalFilterConfigurations: []interface{}{
		&RelationalFilterConfigurationProperty{
			DatabaseName: jsii.String("databaseName"),

			// the properties below are optional
			FilterExpressions: []interface{}{
				&FilterExpressionProperty{
					Expression: jsii.String("expression"),
					Type: jsii.String("type"),
				},
			},
			SchemaName: jsii.String("schemaName"),
		},
	},

	// the properties below are optional
	DataAccessRole: jsii.String("dataAccessRole"),
	RedshiftCredentialConfiguration: &RedshiftCredentialConfigurationProperty{
		SecretManagerArn: jsii.String("secretManagerArn"),
	},
	RedshiftStorage: &RedshiftStorageProperty{
		RedshiftClusterSource: &RedshiftClusterStorageProperty{
			ClusterName: jsii.String("clusterName"),
		},
		RedshiftServerlessSource: &RedshiftServerlessStorageProperty{
			WorkgroupName: jsii.String("workgroupName"),
		},
	},
}
```

## Properties

- `dataAccessRole`: string — The data access role included in the configuration details of the Amazon Redshift data source.

- `redshiftCredentialConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.RedshiftCredentialConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_datazone.CfnDataSource.RedshiftCredentialConfigurationProperty.html) — The details of the credentials required to access an Amazon Redshift cluster.

- `redshiftStorage`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.RedshiftStorageProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_datazone.CfnDataSource.RedshiftStorageProperty.html) — The details of the Amazon Redshift storage as part of the configuration of an Amazon Redshift data source run.

- `relationalFilterConfigurations`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.RelationalFilterConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_datazone.CfnDataSource.RelationalFilterConfigurationProperty.html)[] (required) — The relational filter configurations included in the configuration details of the AWS Glue data source.
