Class: AWSCDK::Kendra::CfnDataSource::SqlConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Kendra::CfnDataSource::SqlConfigurationProperty
- Defined in:
- kendra/cfn_data_source.rb
Overview
Provides information that configures Amazon Kendra to use a SQL database.
Instance Attribute Summary collapse
-
#query_identifiers_enclosing_option ⇒ String?
readonly
Determines whether Amazon Kendra encloses SQL identifiers for tables and column names in double quotes (") when making a database query.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(query_identifiers_enclosing_option: nil) ⇒ SqlConfigurationProperty
constructor
A new instance of SqlConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(query_identifiers_enclosing_option: nil) ⇒ SqlConfigurationProperty
Returns a new instance of SqlConfigurationProperty.
3624 3625 3626 3627 |
# File 'kendra/cfn_data_source.rb', line 3624 def initialize(query_identifiers_enclosing_option: nil) @query_identifiers_enclosing_option = query_identifiers_enclosing_option Jsii::Type.check_type(@query_identifiers_enclosing_option, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "queryIdentifiersEnclosingOption") unless @query_identifiers_enclosing_option.nil? end |
Instance Attribute Details
#query_identifiers_enclosing_option ⇒ String? (readonly)
Determines whether Amazon Kendra encloses SQL identifiers for tables and column names in double quotes (") when making a database query.
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 .
3641 3642 3643 |
# File 'kendra/cfn_data_source.rb', line 3641 def query_identifiers_enclosing_option @query_identifiers_enclosing_option end |
Class Method Details
.jsii_properties ⇒ Object
3643 3644 3645 3646 3647 |
# File 'kendra/cfn_data_source.rb', line 3643 def self.jsii_properties { :query_identifiers_enclosing_option => "queryIdentifiersEnclosingOption", } end |
Instance Method Details
#to_jsii ⇒ Object
3649 3650 3651 3652 3653 3654 3655 |
# File 'kendra/cfn_data_source.rb', line 3649 def to_jsii result = {} result.merge!({ "queryIdentifiersEnclosingOption" => @query_identifiers_enclosing_option, }) result.compact end |