Class: AWSCDK::Bedrock::CfnDataAutomationProject::DocumentStandardExtractionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnDataAutomationProject::DocumentStandardExtractionProperty
- Defined in:
- bedrock/cfn_data_automation_project.rb
Overview
Settings for generating data from documents.
Instance Attribute Summary collapse
-
#bounding_box ⇒ AWSCDK::IResolvable, AWSCDK::Bedrock::CfnDataAutomationProject::DocumentBoundingBoxProperty
readonly
Whether to generate bounding boxes.
-
#granularity ⇒ AWSCDK::IResolvable, AWSCDK::Bedrock::CfnDataAutomationProject::DocumentExtractionGranularityProperty
readonly
Which granularities to generate data for.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bounding_box:, granularity:) ⇒ DocumentStandardExtractionProperty
constructor
A new instance of DocumentStandardExtractionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bounding_box:, granularity:) ⇒ DocumentStandardExtractionProperty
Returns a new instance of DocumentStandardExtractionProperty.
1322 1323 1324 1325 1326 1327 |
# File 'bedrock/cfn_data_automation_project.rb', line 1322 def initialize(bounding_box:, granularity:) @bounding_box = bounding_box.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnDataAutomationProject::DocumentBoundingBoxProperty.new(**bounding_box.transform_keys(&:to_sym)) : bounding_box Jsii::Type.check_type(@bounding_box, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbkRhdGFBdXRvbWF0aW9uUHJvamVjdC5Eb2N1bWVudEJvdW5kaW5nQm94UHJvcGVydHkifV19fQ==")), "boundingBox") @granularity = granularity.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnDataAutomationProject::DocumentExtractionGranularityProperty.new(**granularity.transform_keys(&:to_sym)) : granularity Jsii::Type.check_type(@granularity, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbkRhdGFBdXRvbWF0aW9uUHJvamVjdC5Eb2N1bWVudEV4dHJhY3Rpb25HcmFudWxhcml0eVByb3BlcnR5In1dfX0=")), "granularity") end |
Instance Attribute Details
#bounding_box ⇒ AWSCDK::IResolvable, AWSCDK::Bedrock::CfnDataAutomationProject::DocumentBoundingBoxProperty (readonly)
Whether to generate bounding boxes.
1333 1334 1335 |
# File 'bedrock/cfn_data_automation_project.rb', line 1333 def bounding_box @bounding_box end |
#granularity ⇒ AWSCDK::IResolvable, AWSCDK::Bedrock::CfnDataAutomationProject::DocumentExtractionGranularityProperty (readonly)
Which granularities to generate data for.
1338 1339 1340 |
# File 'bedrock/cfn_data_automation_project.rb', line 1338 def granularity @granularity end |
Class Method Details
.jsii_properties ⇒ Object
1340 1341 1342 1343 1344 1345 |
# File 'bedrock/cfn_data_automation_project.rb', line 1340 def self.jsii_properties { :bounding_box => "boundingBox", :granularity => "granularity", } end |
Instance Method Details
#to_jsii ⇒ Object
1347 1348 1349 1350 1351 1352 1353 1354 |
# File 'bedrock/cfn_data_automation_project.rb', line 1347 def to_jsii result = {} result.merge!({ "boundingBox" => @bounding_box, "granularity" => @granularity, }) result.compact end |