Class: AWSCDK::Bedrock::CfnDataAutomationProject::VideoExtractionCategoryProperty

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

Overview

Settings for generating categorical data from video.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(state:, types: nil) ⇒ VideoExtractionCategoryProperty

Returns a new instance of VideoExtractionCategoryProperty.

Parameters:

  • state (String)

    Whether generating categorical data from video is enabled.

  • types (Array<String>, nil) (defaults to: nil)

    The types of data to generate.



2197
2198
2199
2200
2201
2202
# File 'bedrock/cfn_data_automation_project.rb', line 2197

def initialize(state:, types: nil)
  @state = state
  Jsii::Type.check_type(@state, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "state")
  @types = types
  Jsii::Type.check_type(@types, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "types") unless @types.nil?
end

Instance Attribute Details

#stateString (readonly)

Whether generating categorical data from video is enabled.



2208
2209
2210
# File 'bedrock/cfn_data_automation_project.rb', line 2208

def state
  @state
end

#typesArray<String>? (readonly)

The types of data to generate.



2213
2214
2215
# File 'bedrock/cfn_data_automation_project.rb', line 2213

def types
  @types
end

Class Method Details

.jsii_propertiesObject



2215
2216
2217
2218
2219
2220
# File 'bedrock/cfn_data_automation_project.rb', line 2215

def self.jsii_properties
  {
    :state => "state",
    :types => "types",
  }
end

Instance Method Details

#to_jsiiObject



2222
2223
2224
2225
2226
2227
2228
2229
# File 'bedrock/cfn_data_automation_project.rb', line 2222

def to_jsii
  result = {}
  result.merge!({
    "state" => @state,
    "types" => @types,
  })
  result.compact
end