Class: AWSCDK::QBusiness::CfnDataSource::DocumentEnrichmentConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QBusiness::CfnDataSource::DocumentEnrichmentConfigurationProperty
- Defined in:
- q_business/cfn_data_source.rb
Overview
Provides the configuration information for altering document metadata and content during the document ingestion process.
For more information, see Custom document enrichment .
Instance Attribute Summary collapse
-
#inline_configurations ⇒ AWSCDK::IResolvable, ...
readonly
Configuration information to alter document attributes or metadata fields and content when ingesting documents into Amazon Q Business.
-
#post_extraction_hook_configuration ⇒ AWSCDK::IResolvable, ...
readonly
Configuration information for invoking a Lambda function in AWS Lambda on the structured documents with their metadata and text extracted.
-
#pre_extraction_hook_configuration ⇒ AWSCDK::IResolvable, ...
readonly
Configuration information for invoking a Lambda function in AWS Lambda on the original or raw documents before extracting their metadata and text.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(inline_configurations: nil, post_extraction_hook_configuration: nil, pre_extraction_hook_configuration: nil) ⇒ DocumentEnrichmentConfigurationProperty
constructor
A new instance of DocumentEnrichmentConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(inline_configurations: nil, post_extraction_hook_configuration: nil, pre_extraction_hook_configuration: nil) ⇒ DocumentEnrichmentConfigurationProperty
Returns a new instance of DocumentEnrichmentConfigurationProperty.
977 978 979 980 981 982 983 984 |
# File 'q_business/cfn_data_source.rb', line 977 def initialize(inline_configurations: nil, post_extraction_hook_configuration: nil, pre_extraction_hook_configuration: nil) @inline_configurations = inline_configurations Jsii::Type.check_type(@inline_configurations, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcWJ1c2luZXNzLkNmbkRhdGFTb3VyY2UuSW5saW5lRG9jdW1lbnRFbnJpY2htZW50Q29uZmlndXJhdGlvblByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "inlineConfigurations") unless @inline_configurations.nil? @post_extraction_hook_configuration = post_extraction_hook_configuration.is_a?(Hash) ? ::AWSCDK::QBusiness::CfnDataSource::HookConfigurationProperty.new(**post_extraction_hook_configuration.transform_keys(&:to_sym)) : post_extraction_hook_configuration Jsii::Type.check_type(@post_extraction_hook_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xYnVzaW5lc3MuQ2ZuRGF0YVNvdXJjZS5Ib29rQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "postExtractionHookConfiguration") unless @post_extraction_hook_configuration.nil? @pre_extraction_hook_configuration = pre_extraction_hook_configuration.is_a?(Hash) ? ::AWSCDK::QBusiness::CfnDataSource::HookConfigurationProperty.new(**pre_extraction_hook_configuration.transform_keys(&:to_sym)) : pre_extraction_hook_configuration Jsii::Type.check_type(@pre_extraction_hook_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xYnVzaW5lc3MuQ2ZuRGF0YVNvdXJjZS5Ib29rQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "preExtractionHookConfiguration") unless @pre_extraction_hook_configuration.nil? end |
Instance Attribute Details
#inline_configurations ⇒ AWSCDK::IResolvable, ... (readonly)
Configuration information to alter document attributes or metadata fields and content when ingesting documents into Amazon Q Business.
990 991 992 |
# File 'q_business/cfn_data_source.rb', line 990 def inline_configurations @inline_configurations end |
#post_extraction_hook_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
Configuration information for invoking a Lambda function in AWS Lambda on the structured documents with their metadata and text extracted.
You can use a Lambda function to apply advanced logic for creating, modifying, or deleting document metadata and content. For more information, see Using Lambda functions .
997 998 999 |
# File 'q_business/cfn_data_source.rb', line 997 def post_extraction_hook_configuration @post_extraction_hook_configuration end |
#pre_extraction_hook_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
Configuration information for invoking a Lambda function in AWS Lambda on the original or raw documents before extracting their metadata and text.
You can use a Lambda function to apply advanced logic for creating, modifying, or deleting document metadata and content. For more information, see Using Lambda functions .
1004 1005 1006 |
# File 'q_business/cfn_data_source.rb', line 1004 def pre_extraction_hook_configuration @pre_extraction_hook_configuration end |
Class Method Details
.jsii_properties ⇒ Object
1006 1007 1008 1009 1010 1011 1012 |
# File 'q_business/cfn_data_source.rb', line 1006 def self.jsii_properties { :inline_configurations => "inlineConfigurations", :post_extraction_hook_configuration => "postExtractionHookConfiguration", :pre_extraction_hook_configuration => "preExtractionHookConfiguration", } end |
Instance Method Details
#to_jsii ⇒ Object
1014 1015 1016 1017 1018 1019 1020 1021 1022 |
# File 'q_business/cfn_data_source.rb', line 1014 def to_jsii result = {} result.merge!({ "inlineConfigurations" => @inline_configurations, "postExtractionHookConfiguration" => @post_extraction_hook_configuration, "preExtractionHookConfiguration" => @pre_extraction_hook_configuration, }) result.compact end |