Skip to content
v2.274.0

QueryGenerationConfigurationProperty Struct ​

Contains configurations for query generation.

For more information, see Build a knowledge base by connecting to a structured data source in the Amazon Bedrock User Guide..

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 queryGenerationConfigurationProperty: bedrock.CfnKnowledgeBase.QueryGenerationConfigurationProperty = {
  executionTimeoutSeconds: 123,
  generationContext: {
    curatedQueries: [{
      naturalLanguage: 'naturalLanguage',
      sql: 'sql',
    }],
    tables: [{
      name: 'name',

      // the properties below are optional
      columns: [{
        description: 'description',
        inclusion: 'inclusion',
        name: 'name',
      }],
      description: 'description',
      inclusion: 'inclusion',
    }],
  },
};

Properties ​

executionTimeoutSecondsnumberexecution_timeout_secondsint | floatexecutionTimeoutSecondsNumberExecutionTimeoutSecondsdoubleExecutionTimeoutSeconds*float64#
The time after which query generation will time out.
generationContextIResolvable | CfnKnowledgeBase.QueryGenerationContextPropertygeneration_contexttyping.Union[IResolvable, QueryGenerationContextProperty]generationContextIResolvableGenerationContextIResolvableGenerationContextinterface{}#
Specifies configurations for context to use during query generation.