Class: AWSCDK::Bedrock::CfnDataAutomationProject::ImageExtractionCategoryProperty

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

Overview

Settings for generating categorical data from images.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ImageExtractionCategoryProperty.

Parameters:

  • state (String)

    Whether generating categorical data from images is enabled.

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

    The types of data to generate.



1484
1485
1486
1487
1488
1489
# File 'bedrock/cfn_data_automation_project.rb', line 1484

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 images is enabled.



1495
1496
1497
# File 'bedrock/cfn_data_automation_project.rb', line 1495

def state
  @state
end

#typesArray<String>? (readonly)

The types of data to generate.



1500
1501
1502
# File 'bedrock/cfn_data_automation_project.rb', line 1500

def types
  @types
end

Class Method Details

.jsii_propertiesObject



1502
1503
1504
1505
1506
1507
# File 'bedrock/cfn_data_automation_project.rb', line 1502

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

Instance Method Details

#to_jsiiObject



1509
1510
1511
1512
1513
1514
1515
1516
# File 'bedrock/cfn_data_automation_project.rb', line 1509

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