Class: AWSCDK::Bedrock::CfnDataSource::TransformationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnDataSource::TransformationProperty
- Defined in:
- bedrock/cfn_data_source.rb
Overview
A custom processing step for documents moving through a data source ingestion pipeline.
To process documents after they have been converted into chunks, set the step to apply to POST_CHUNKING .
Instance Attribute Summary collapse
-
#step_to_apply ⇒ String
readonly
When the service applies the transformation.
-
#transformation_function ⇒ AWSCDK::IResolvable, AWSCDK::Bedrock::CfnDataSource::TransformationFunctionProperty
readonly
A Lambda function that processes documents.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(step_to_apply:, transformation_function:) ⇒ TransformationProperty
constructor
A new instance of TransformationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(step_to_apply:, transformation_function:) ⇒ TransformationProperty
Returns a new instance of TransformationProperty.
2414 2415 2416 2417 2418 2419 |
# File 'bedrock/cfn_data_source.rb', line 2414 def initialize(step_to_apply:, transformation_function:) @step_to_apply = step_to_apply Jsii::Type.check_type(@step_to_apply, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "stepToApply") @transformation_function = transformation_function.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnDataSource::TransformationFunctionProperty.new(**transformation_function.transform_keys(&:to_sym)) : transformation_function Jsii::Type.check_type(@transformation_function, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbkRhdGFTb3VyY2UuVHJhbnNmb3JtYXRpb25GdW5jdGlvblByb3BlcnR5In1dfX0=")), "transformationFunction") end |
Instance Attribute Details
#step_to_apply ⇒ String (readonly)
When the service applies the transformation.
2425 2426 2427 |
# File 'bedrock/cfn_data_source.rb', line 2425 def step_to_apply @step_to_apply end |
#transformation_function ⇒ AWSCDK::IResolvable, AWSCDK::Bedrock::CfnDataSource::TransformationFunctionProperty (readonly)
A Lambda function that processes documents.
2430 2431 2432 |
# File 'bedrock/cfn_data_source.rb', line 2430 def transformation_function @transformation_function end |
Class Method Details
.jsii_properties ⇒ Object
2432 2433 2434 2435 2436 2437 |
# File 'bedrock/cfn_data_source.rb', line 2432 def self.jsii_properties { :step_to_apply => "stepToApply", :transformation_function => "transformationFunction", } end |
Instance Method Details
#to_jsii ⇒ Object
2439 2440 2441 2442 2443 2444 2445 2446 |
# File 'bedrock/cfn_data_source.rb', line 2439 def to_jsii result = {} result.merge!({ "stepToApply" => @step_to_apply, "transformationFunction" => @transformation_function, }) result.compact end |