Class: AWSCDK::Bedrock::CfnDataAutomationProject::ImageStandardExtractionProperty

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

Overview

Settings for generating data from images.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bounding_box:, category:) ⇒ ImageStandardExtractionProperty

Returns a new instance of ImageStandardExtractionProperty.

Parameters:



1572
1573
1574
1575
1576
1577
# File 'bedrock/cfn_data_automation_project.rb', line 1572

def initialize(bounding_box:, category:)
  @bounding_box = bounding_box.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnDataAutomationProject::ImageBoundingBoxProperty.new(**bounding_box.transform_keys(&:to_sym)) : bounding_box
  Jsii::Type.check_type(@bounding_box, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbkRhdGFBdXRvbWF0aW9uUHJvamVjdC5JbWFnZUJvdW5kaW5nQm94UHJvcGVydHkifV19fQ==")), "boundingBox")
  @category = category.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnDataAutomationProject::ImageExtractionCategoryProperty.new(**category.transform_keys(&:to_sym)) : category
  Jsii::Type.check_type(@category, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbkRhdGFBdXRvbWF0aW9uUHJvamVjdC5JbWFnZUV4dHJhY3Rpb25DYXRlZ29yeVByb3BlcnR5In1dfX0=")), "category")
end

Class Method Details

.jsii_propertiesObject



1590
1591
1592
1593
1594
1595
# File 'bedrock/cfn_data_automation_project.rb', line 1590

def self.jsii_properties
  {
    :bounding_box => "boundingBox",
    :category => "category",
  }
end

Instance Method Details

#to_jsiiObject



1597
1598
1599
1600
1601
1602
1603
1604
# File 'bedrock/cfn_data_automation_project.rb', line 1597

def to_jsii
  result = {}
  result.merge!({
    "boundingBox" => @bounding_box,
    "category" => @category,
  })
  result.compact
end