Skip to content
v2.278.0

CuratedQueryProperty Struct ​

Contains configurations for a query, each of which defines information about example queries to help the query engine generate appropriate SQL queries.

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 curatedQueryProperty: bedrock.CfnKnowledgeBase.CuratedQueryProperty = {
  naturalLanguage: 'naturalLanguage',
  sql: 'sql',
};
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

curated_query_property = bedrock.CfnKnowledgeBase.CuratedQueryProperty(
    natural_language="naturalLanguage",
    sql="sql"
)
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.*;

CuratedQueryProperty curatedQueryProperty = CuratedQueryProperty.builder()
        .naturalLanguage("naturalLanguage")
        .sql("sql")
        .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 curatedQueryProperty = new CuratedQueryProperty {
    NaturalLanguage = "naturalLanguage",
    Sql = "sql"
};
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"

curatedQueryProperty := &CuratedQueryProperty{
	NaturalLanguage: jsii.String("naturalLanguage"),
	Sql: jsii.String("sql"),
}

Properties ​

naturalLanguagestringnatural_languagestrnaturalLanguageStringNaturalLanguagestringNaturalLanguage*string required #
An example natural language query.
sqlstringsqlstrsqlStringSqlstringSql*string required #
The SQL equivalent of the natural language query.