Class: AWSCDK::Kendra::CfnDataSource::InlineCustomDocumentEnrichmentConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
kendra/cfn_data_source.rb

Overview

Provides the configuration information for applying basic logic to alter document metadata and content when ingesting documents into Amazon Kendra.

To apply advanced logic, to go beyond what you can do with basic logic, see HookConfiguration .

For more information, see Customizing document metadata during the ingestion process .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(condition: nil, document_content_deletion: nil, target: nil) ⇒ InlineCustomDocumentEnrichmentConfigurationProperty

Returns a new instance of InlineCustomDocumentEnrichmentConfigurationProperty.

Parameters:



2270
2271
2272
2273
2274
2275
2276
2277
# File 'kendra/cfn_data_source.rb', line 2270

def initialize(condition: nil, document_content_deletion: nil, target: nil)
  @condition = condition.is_a?(Hash) ? ::AWSCDK::Kendra::CfnDataSource::DocumentAttributeConditionProperty.new(**condition.transform_keys(&:to_sym)) : condition
  Jsii::Type.check_type(@condition, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19rZW5kcmEuQ2ZuRGF0YVNvdXJjZS5Eb2N1bWVudEF0dHJpYnV0ZUNvbmRpdGlvblByb3BlcnR5In1dfX0=")), "condition") unless @condition.nil?
  @document_content_deletion = document_content_deletion
  Jsii::Type.check_type(@document_content_deletion, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "documentContentDeletion") unless @document_content_deletion.nil?
  @target = target.is_a?(Hash) ? ::AWSCDK::Kendra::CfnDataSource::DocumentAttributeTargetProperty.new(**target.transform_keys(&:to_sym)) : target
  Jsii::Type.check_type(@target, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19rZW5kcmEuQ2ZuRGF0YVNvdXJjZS5Eb2N1bWVudEF0dHJpYnV0ZVRhcmdldFByb3BlcnR5In1dfX0=")), "target") unless @target.nil?
end

Instance Attribute Details

#conditionAWSCDK::IResolvable, ... (readonly)

Configuration of the condition used for the target document attribute or metadata field when ingesting documents into Amazon Kendra.



2283
2284
2285
# File 'kendra/cfn_data_source.rb', line 2283

def condition
  @condition
end

#document_content_deletionBoolean, ... (readonly)

TRUE to delete content if the condition used for the target attribute is met.



2288
2289
2290
# File 'kendra/cfn_data_source.rb', line 2288

def document_content_deletion
  @document_content_deletion
end

#targetAWSCDK::IResolvable, ... (readonly)

Configuration of the target document attribute or metadata field when ingesting documents into Amazon Kendra.

You can also include a value.



2295
2296
2297
# File 'kendra/cfn_data_source.rb', line 2295

def target
  @target
end

Class Method Details

.jsii_propertiesObject



2297
2298
2299
2300
2301
2302
2303
# File 'kendra/cfn_data_source.rb', line 2297

def self.jsii_properties
  {
    :condition => "condition",
    :document_content_deletion => "documentContentDeletion",
    :target => "target",
  }
end

Instance Method Details

#to_jsiiObject



2305
2306
2307
2308
2309
2310
2311
2312
2313
# File 'kendra/cfn_data_source.rb', line 2305

def to_jsii
  result = {}
  result.merge!({
    "condition" => @condition,
    "documentContentDeletion" => @document_content_deletion,
    "target" => @target,
  })
  result.compact
end