# RedshiftQueryEngineStorageConfigurationProperty

Contains configurations for Amazon Redshift data storage.

Specify the data storage service to use in the `type` field and include the corresponding field. For more information, see [Build a knowledge base by connecting to a structured data source](https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-build-structured.html) in the Amazon Bedrock User Guide.

- 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_bedrock as bedrock } from 'aws-cdk-lib';
const redshiftQueryEngineStorageConfigurationProperty: bedrock.CfnKnowledgeBase.RedshiftQueryEngineStorageConfigurationProperty = {
  type: 'type',

  // the properties below are optional
  awsDataCatalogConfiguration: {
    tableNames: ['tableNames'],
  },
  redshiftConfiguration: {
    databaseName: 'databaseName',
  },
};
```

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_bedrock as bedrock

redshift_query_engine_storage_configuration_property = bedrock.CfnKnowledgeBase.RedshiftQueryEngineStorageConfigurationProperty(
    type="type",

    # the properties below are optional
    aws_data_catalog_configuration=bedrock.CfnKnowledgeBase.RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty(
        table_names=["tableNames"]
    ),
    redshift_configuration=bedrock.CfnKnowledgeBase.RedshiftQueryEngineRedshiftStorageConfigurationProperty(
        database_name="databaseName"
    )
)
```

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.bedrock.*;

RedshiftQueryEngineStorageConfigurationProperty redshiftQueryEngineStorageConfigurationProperty = RedshiftQueryEngineStorageConfigurationProperty.builder()
        .type("type")

        // the properties below are optional
        .awsDataCatalogConfiguration(RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty.builder()
                .tableNames(List.of("tableNames"))
                .build())
        .redshiftConfiguration(RedshiftQueryEngineRedshiftStorageConfigurationProperty.builder()
                .databaseName("databaseName")
                .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.Bedrock;

var redshiftQueryEngineStorageConfigurationProperty = new RedshiftQueryEngineStorageConfigurationProperty {
    Type = "type",

    // the properties below are optional
    AwsDataCatalogConfiguration = new RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty {
        TableNames = new [] { "tableNames" }
    },
    RedshiftConfiguration = new RedshiftQueryEngineRedshiftStorageConfigurationProperty {
        DatabaseName = "databaseName"
    }
};
```

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"

redshiftQueryEngineStorageConfigurationProperty := &RedshiftQueryEngineStorageConfigurationProperty{
	Type: jsii.String("type"),

	// the properties below are optional
	AwsDataCatalogConfiguration: &RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty{
		TableNames: []*string{
			jsii.String("tableNames"),
		},
	},
	RedshiftConfiguration: &RedshiftQueryEngineRedshiftStorageConfigurationProperty{
		DatabaseName: jsii.String("databaseName"),
	},
}
```

## Properties

- `awsDataCatalogConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnKnowledgeBase.RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrock.CfnKnowledgeBase.RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty.html) — Specifies configurations for storage in AWS Glue Data Catalog.

- `redshiftConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnKnowledgeBase.RedshiftQueryEngineRedshiftStorageConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrock.CfnKnowledgeBase.RedshiftQueryEngineRedshiftStorageConfigurationProperty.html) — Specifies configurations for storage in Amazon Redshift.

- `type`: string (required) — The data storage service to use.
