Class: AWSCDK::Bedrock::CfnDataSource::CustomTransformationConfigurationProperty

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

Overview

Settings for customizing steps in the data source content ingestion pipeline.

You can configure the data source to process documents with a Lambda function after they are parsed and converted into chunks. When you add a post-chunking transformation, the service stores chunked documents in an S3 bucket and invokes a Lambda function to process them.

To process chunked documents with a Lambda function, define an S3 bucket path for input and output objects, and a transformation that specifies the Lambda function to invoke. You can use the Lambda function to customize how chunks are split, and the metadata for each chunk.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(intermediate_storage:, transformations:) ⇒ CustomTransformationConfigurationProperty

Returns a new instance of CustomTransformationConfigurationProperty.

Parameters:



1125
1126
1127
1128
1129
1130
# File 'bedrock/cfn_data_source.rb', line 1125

def initialize(intermediate_storage:, transformations:)
  @intermediate_storage = intermediate_storage.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnDataSource::IntermediateStorageProperty.new(**intermediate_storage.transform_keys(&:to_sym)) : intermediate_storage
  Jsii::Type.check_type(@intermediate_storage, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbkRhdGFTb3VyY2UuSW50ZXJtZWRpYXRlU3RvcmFnZVByb3BlcnR5In1dfX0=")), "intermediateStorage")
  @transformations = transformations
  Jsii::Type.check_type(@transformations, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9jay5DZm5EYXRhU291cmNlLlRyYW5zZm9ybWF0aW9uUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "transformations")
end

Class Method Details

.jsii_propertiesObject



1143
1144
1145
1146
1147
1148
# File 'bedrock/cfn_data_source.rb', line 1143

def self.jsii_properties
  {
    :intermediate_storage => "intermediateStorage",
    :transformations => "transformations",
  }
end

Instance Method Details

#to_jsiiObject



1150
1151
1152
1153
1154
1155
1156
1157
# File 'bedrock/cfn_data_source.rb', line 1150

def to_jsii
  result = {}
  result.merge!({
    "intermediateStorage" => @intermediate_storage,
    "transformations" => @transformations,
  })
  result.compact
end