RedshiftQueryEngineConfigurationProperty Struct
Contains configurations for an Amazon Redshift query engine.
Specify the type of query engine in type 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 redshiftQueryEngineConfigurationProperty: bedrock.CfnKnowledgeBase.RedshiftQueryEngineConfigurationProperty = {
type: 'type',
// the properties below are optional
provisionedConfiguration: {
authConfiguration: {
type: 'type',
// the properties below are optional
databaseUser: 'databaseUser',
usernamePasswordSecretArn: 'usernamePasswordSecretArn',
},
clusterIdentifier: 'clusterIdentifier',
},
serverlessConfiguration: {
authConfiguration: {
type: 'type',
// the properties below are optional
usernamePasswordSecretArn: 'usernamePasswordSecretArn',
},
workgroupArn: 'workgroupArn',
},
};
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_configuration_property = bedrock.CfnKnowledgeBase.RedshiftQueryEngineConfigurationProperty(
type="type",
# the properties below are optional
provisioned_configuration=bedrock.CfnKnowledgeBase.RedshiftProvisionedConfigurationProperty(
auth_configuration=bedrock.CfnKnowledgeBase.RedshiftProvisionedAuthConfigurationProperty(
type="type",
# the properties below are optional
database_user="databaseUser",
username_password_secret_arn="usernamePasswordSecretArn"
),
cluster_identifier="clusterIdentifier"
),
serverless_configuration=bedrock.CfnKnowledgeBase.RedshiftServerlessConfigurationProperty(
auth_configuration=bedrock.CfnKnowledgeBase.RedshiftServerlessAuthConfigurationProperty(
type="type",
# the properties below are optional
username_password_secret_arn="usernamePasswordSecretArn"
),
workgroup_arn="workgroupArn"
)
)
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.*;
RedshiftQueryEngineConfigurationProperty redshiftQueryEngineConfigurationProperty = RedshiftQueryEngineConfigurationProperty.builder()
.type("type")
// the properties below are optional
.provisionedConfiguration(RedshiftProvisionedConfigurationProperty.builder()
.authConfiguration(RedshiftProvisionedAuthConfigurationProperty.builder()
.type("type")
// the properties below are optional
.databaseUser("databaseUser")
.usernamePasswordSecretArn("usernamePasswordSecretArn")
.build())
.clusterIdentifier("clusterIdentifier")
.build())
.serverlessConfiguration(RedshiftServerlessConfigurationProperty.builder()
.authConfiguration(RedshiftServerlessAuthConfigurationProperty.builder()
.type("type")
// the properties below are optional
.usernamePasswordSecretArn("usernamePasswordSecretArn")
.build())
.workgroupArn("workgroupArn")
.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 redshiftQueryEngineConfigurationProperty = new RedshiftQueryEngineConfigurationProperty {
Type = "type",
// the properties below are optional
ProvisionedConfiguration = new RedshiftProvisionedConfigurationProperty {
AuthConfiguration = new RedshiftProvisionedAuthConfigurationProperty {
Type = "type",
// the properties below are optional
DatabaseUser = "databaseUser",
UsernamePasswordSecretArn = "usernamePasswordSecretArn"
},
ClusterIdentifier = "clusterIdentifier"
},
ServerlessConfiguration = new RedshiftServerlessConfigurationProperty {
AuthConfiguration = new RedshiftServerlessAuthConfigurationProperty {
Type = "type",
// the properties below are optional
UsernamePasswordSecretArn = "usernamePasswordSecretArn"
},
WorkgroupArn = "workgroupArn"
}
};
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"
redshiftQueryEngineConfigurationProperty := &RedshiftQueryEngineConfigurationProperty{
Type: jsii.String("type"),
// the properties below are optional
ProvisionedConfiguration: &RedshiftProvisionedConfigurationProperty{
AuthConfiguration: &RedshiftProvisionedAuthConfigurationProperty{
Type: jsii.String("type"),
// the properties below are optional
DatabaseUser: jsii.String("databaseUser"),
UsernamePasswordSecretArn: jsii.String("usernamePasswordSecretArn"),
},
ClusterIdentifier: jsii.String("clusterIdentifier"),
},
ServerlessConfiguration: &RedshiftServerlessConfigurationProperty{
AuthConfiguration: &RedshiftServerlessAuthConfigurationProperty{
Type: jsii.String("type"),
// the properties below are optional
UsernamePasswordSecretArn: jsii.String("usernamePasswordSecretArn"),
},
WorkgroupArn: jsii.String("workgroupArn"),
},
}
Properties
provisionedConfigurationoptionalIResolvable | CfnKnowledgeBase.provisioned_configurationoptionaltyping.Union[IResolvable, RedshiftProvisionedConfigurationProperty]provisionedConfigurationoptionalIResolvableProvisionedConfigurationoptionalIResolvableProvisionedConfigurationoptionalinterface{} #Specifies configurations for a provisioned Amazon Redshift query engine.
serverlessConfigurationoptionalIResolvable | CfnKnowledgeBase.serverless_configurationoptionaltyping.Union[IResolvable, RedshiftServerlessConfigurationProperty]serverlessConfigurationoptionalIResolvableServerlessConfigurationoptionalIResolvableServerlessConfigurationoptionalinterface{} #Specifies configurations for a serverless Amazon Redshift query engine.
The type of query engine.