Class: AWSCDK::Bedrock::CfnDataAutomationProject::VideoStandardExtractionProperty

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

Overview

Settings for generating data from video.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bounding_box:, category:) ⇒ VideoStandardExtractionProperty

Returns a new instance of VideoStandardExtractionProperty.

Parameters:



2285
2286
2287
2288
2289
2290
# File 'bedrock/cfn_data_automation_project.rb', line 2285

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

Class Method Details

.jsii_propertiesObject



2303
2304
2305
2306
2307
2308
# File 'bedrock/cfn_data_automation_project.rb', line 2303

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

Instance Method Details

#to_jsiiObject



2310
2311
2312
2313
2314
2315
2316
2317
# File 'bedrock/cfn_data_automation_project.rb', line 2310

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