Class: AWSCDK::Bedrock::CfnDataAutomationProject::DocumentStandardExtractionProperty

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

Overview

Settings for generating data from documents.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bounding_box:, granularity:) ⇒ DocumentStandardExtractionProperty

Returns a new instance of DocumentStandardExtractionProperty.

Parameters:



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

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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