RedshiftQueryEngineStorageConfigurationProperty Struct
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 in the Amazon Bedrock User Guide.
| 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_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
# 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
// 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();
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"
}
};
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
awsDataCatalogConfigurationoptionalIResolvable | CfnKnowledgeBase.aws_data_catalog_configurationoptionaltyping.Union[IResolvable, RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty]awsDataCatalogConfigurationoptionalIResolvableAwsDataCatalogConfigurationoptionalIResolvableAwsDataCatalogConfigurationoptionalinterface{} #Specifies configurations for storage in AWS Glue Data Catalog.
redshiftConfigurationoptionalIResolvable | CfnKnowledgeBase.redshift_configurationoptionaltyping.Union[IResolvable, RedshiftQueryEngineRedshiftStorageConfigurationProperty]redshiftConfigurationoptionalIResolvableRedshiftConfigurationoptionalIResolvableRedshiftConfigurationoptionalinterface{} #Specifies configurations for storage in Amazon Redshift.
The data storage service to use.