Class: AWSCDK::QBusiness::CfnDataSource::InlineDocumentEnrichmentConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QBusiness::CfnDataSource::InlineDocumentEnrichmentConfigurationProperty
- Defined in:
- q_business/cfn_data_source.rb
Overview
Provides the configuration information for applying basic logic to alter document metadata and content when ingesting documents into Amazon Q Business.
To apply advanced logic, to go beyond what you can do with basic logic, see HookConfiguration .
For more information, see Custom document enrichment .
Instance Attribute Summary collapse
-
#condition ⇒ AWSCDK::IResolvable, ...
readonly
Configuration of the condition used for the target document attribute or metadata field when ingesting documents into Amazon Q Business .
-
#document_content_operator ⇒ String?
readonly
TRUEto delete content if the condition used for the target attribute is met. -
#target ⇒ AWSCDK::IResolvable, ...
readonly
Configuration of the target document attribute or metadata field when ingesting documents into Amazon Q Business .
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(condition: nil, document_content_operator: nil, target: nil) ⇒ InlineDocumentEnrichmentConfigurationProperty
constructor
A new instance of InlineDocumentEnrichmentConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(condition: nil, document_content_operator: nil, target: nil) ⇒ InlineDocumentEnrichmentConfigurationProperty
Returns a new instance of InlineDocumentEnrichmentConfigurationProperty.
1150 1151 1152 1153 1154 1155 1156 1157 |
# File 'q_business/cfn_data_source.rb', line 1150 def initialize(condition: nil, document_content_operator: nil, target: nil) @condition = condition.is_a?(Hash) ? ::AWSCDK::QBusiness::CfnDataSource::DocumentAttributeConditionProperty.new(**condition.transform_keys(&:to_sym)) : condition Jsii::Type.check_type(@condition, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xYnVzaW5lc3MuQ2ZuRGF0YVNvdXJjZS5Eb2N1bWVudEF0dHJpYnV0ZUNvbmRpdGlvblByb3BlcnR5In1dfX0=")), "condition") unless @condition.nil? @document_content_operator = document_content_operator Jsii::Type.check_type(@document_content_operator, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "documentContentOperator") unless @document_content_operator.nil? @target = target.is_a?(Hash) ? ::AWSCDK::QBusiness::CfnDataSource::DocumentAttributeTargetProperty.new(**target.transform_keys(&:to_sym)) : target Jsii::Type.check_type(@target, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xYnVzaW5lc3MuQ2ZuRGF0YVNvdXJjZS5Eb2N1bWVudEF0dHJpYnV0ZVRhcmdldFByb3BlcnR5In1dfX0=")), "target") unless @target.nil? end |
Instance Attribute Details
#condition ⇒ AWSCDK::IResolvable, ... (readonly)
Configuration of the condition used for the target document attribute or metadata field when ingesting documents into Amazon Q Business .
1163 1164 1165 |
# File 'q_business/cfn_data_source.rb', line 1163 def condition @condition end |
#document_content_operator ⇒ String? (readonly)
TRUE to delete content if the condition used for the target attribute is met.
1168 1169 1170 |
# File 'q_business/cfn_data_source.rb', line 1168 def document_content_operator @document_content_operator end |
#target ⇒ AWSCDK::IResolvable, ... (readonly)
Configuration of the target document attribute or metadata field when ingesting documents into Amazon Q Business .
You can also include a value.
1175 1176 1177 |
# File 'q_business/cfn_data_source.rb', line 1175 def target @target end |
Class Method Details
.jsii_properties ⇒ Object
1177 1178 1179 1180 1181 1182 1183 |
# File 'q_business/cfn_data_source.rb', line 1177 def self.jsii_properties { :condition => "condition", :document_content_operator => "documentContentOperator", :target => "target", } end |
Instance Method Details
#to_jsii ⇒ Object
1185 1186 1187 1188 1189 1190 1191 1192 1193 |
# File 'q_business/cfn_data_source.rb', line 1185 def to_jsii result = {} result.merge!({ "condition" => @condition, "documentContentOperator" => @document_content_operator, "target" => @target, }) result.compact end |