Skip to content
v2.278.0

SqlConfigurationProperty Struct ​

Provides information that configures Amazon Kendra to use a SQL database.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_kendra as kendra } from 'aws-cdk-lib';
const sqlConfigurationProperty: kendra.CfnDataSource.SqlConfigurationProperty = {
  queryIdentifiersEnclosingOption: 'queryIdentifiersEnclosingOption',
};
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_kendra as kendra

sql_configuration_property = kendra.CfnDataSource.SqlConfigurationProperty(
    query_identifiers_enclosing_option="queryIdentifiersEnclosingOption"
)
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.kendra.*;

SqlConfigurationProperty sqlConfigurationProperty = SqlConfigurationProperty.builder()
        .queryIdentifiersEnclosingOption("queryIdentifiersEnclosingOption")
        .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.Kendra;

var sqlConfigurationProperty = new SqlConfigurationProperty {
    QueryIdentifiersEnclosingOption = "queryIdentifiersEnclosingOption"
};
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"

sqlConfigurationProperty := &SqlConfigurationProperty{
	QueryIdentifiersEnclosingOption: jsii.String("queryIdentifiersEnclosingOption"),
}

Properties ​

queryIdentifiersEnclosingOptionoptionalstringquery_identifiers_enclosing_optionoptionalstrqueryIdentifiersEnclosingOptionoptionalStringQueryIdentifiersEnclosingOptionoptionalstringQueryIdentifiersEnclosingOptionoptional*string #
Determines whether Amazon Kendra encloses SQL identifiers for tables and column names in double quotes (") when making a database query.
notes

You can set the value to DOUBLE_QUOTES or NONE .

By default, Amazon Kendra passes SQL identifiers the way that they are entered into the data source configuration. It does not change the case of identifiers or enclose them in quotes.

PostgreSQL internally converts uppercase characters to lower case characters in identifiers unless they are quoted. Choosing this option encloses identifiers in quotes so that PostgreSQL does not convert the character's case.

For MySQL databases, you must enable the ansi_quotes option when you set this field to DOUBLE_QUOTES .