Interface CfnKnowledgeBasePropsMixin.RedshiftConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnKnowledgeBasePropsMixin.RedshiftConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnKnowledgeBasePropsMixin
@Stability(Stable)
public static interface CfnKnowledgeBasePropsMixin.RedshiftConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
Contains configurations for an Amazon Redshift database.
For more information, see Build a knowledge base by connecting to a structured data source in the Amazon Bedrock User Guide.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.bedrock.*;
RedshiftConfigurationProperty redshiftConfigurationProperty = RedshiftConfigurationProperty.builder()
.queryEngineConfiguration(RedshiftQueryEngineConfigurationProperty.builder()
.provisionedConfiguration(RedshiftProvisionedConfigurationProperty.builder()
.authConfiguration(RedshiftProvisionedAuthConfigurationProperty.builder()
.databaseUser("databaseUser")
.type("type")
.usernamePasswordSecretArn("usernamePasswordSecretArn")
.build())
.clusterIdentifier("clusterIdentifier")
.build())
.serverlessConfiguration(RedshiftServerlessConfigurationProperty.builder()
.authConfiguration(RedshiftServerlessAuthConfigurationProperty.builder()
.type("type")
.usernamePasswordSecretArn("usernamePasswordSecretArn")
.build())
.workgroupArn("workgroupArn")
.build())
.type("type")
.build())
.queryGenerationConfiguration(QueryGenerationConfigurationProperty.builder()
.executionTimeoutSeconds(123)
.generationContext(QueryGenerationContextProperty.builder()
.curatedQueries(List.of(CuratedQueryProperty.builder()
.naturalLanguage("naturalLanguage")
.sql("sql")
.build()))
.tables(List.of(QueryGenerationTableProperty.builder()
.columns(List.of(QueryGenerationColumnProperty.builder()
.description("description")
.inclusion("inclusion")
.name("name")
.build()))
.description("description")
.inclusion("inclusion")
.name("name")
.build()))
.build())
.build())
.storageConfigurations(List.of(RedshiftQueryEngineStorageConfigurationProperty.builder()
.awsDataCatalogConfiguration(RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty.builder()
.tableNames(List.of("tableNames"))
.build())
.redshiftConfiguration(RedshiftQueryEngineRedshiftStorageConfigurationProperty.builder()
.databaseName("databaseName")
.build())
.type("type")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnKnowledgeBasePropsMixin.RedshiftConfigurationPropertystatic final classAn implementation forCfnKnowledgeBasePropsMixin.RedshiftConfigurationProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getQueryEngineConfiguration
Specifies configurations for an Amazon Redshift query engine.Returns union: either
IResolvableorCfnKnowledgeBasePropsMixin.RedshiftQueryEngineConfigurationProperty- See Also:
-
getQueryGenerationConfiguration
Specifies configurations for generating queries.Returns union: either
IResolvableorCfnKnowledgeBasePropsMixin.QueryGenerationConfigurationProperty- See Also:
-
getStorageConfigurations
Specifies configurations for Amazon Redshift database storage.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnKnowledgeBasePropsMixin.RedshiftQueryEngineStorageConfigurationProperty>- See Also:
-
builder
@Stability(Stable) static CfnKnowledgeBasePropsMixin.RedshiftConfigurationProperty.Builder builder()
-