Class: AWSCDK::Bedrock::CfnDataAutomationProject::ImageStandardOutputConfigurationProperty

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

Overview

Output settings for processing images.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(extraction: nil, generative_field: nil) ⇒ ImageStandardOutputConfigurationProperty

Returns a new instance of ImageStandardOutputConfigurationProperty.

Parameters:



1658
1659
1660
1661
1662
1663
# File 'bedrock/cfn_data_automation_project.rb', line 1658

def initialize(extraction: nil, generative_field: nil)
  @extraction = extraction.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnDataAutomationProject::ImageStandardExtractionProperty.new(**extraction.transform_keys(&:to_sym)) : extraction
  Jsii::Type.check_type(@extraction, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbkRhdGFBdXRvbWF0aW9uUHJvamVjdC5JbWFnZVN0YW5kYXJkRXh0cmFjdGlvblByb3BlcnR5In1dfX0=")), "extraction") unless @extraction.nil?
  @generative_field = generative_field.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnDataAutomationProject::ImageStandardGenerativeFieldProperty.new(**generative_field.transform_keys(&:to_sym)) : generative_field
  Jsii::Type.check_type(@generative_field, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbkRhdGFBdXRvbWF0aW9uUHJvamVjdC5JbWFnZVN0YW5kYXJkR2VuZXJhdGl2ZUZpZWxkUHJvcGVydHkifV19fQ==")), "generativeField") unless @generative_field.nil?
end

Instance Attribute Details

#extractionAWSCDK::IResolvable, ... (readonly)

Settings for populating data fields that describe the image.



1669
1670
1671
# File 'bedrock/cfn_data_automation_project.rb', line 1669

def extraction
  @extraction
end

#generative_fieldAWSCDK::IResolvable, ... (readonly)

Whether to generate descriptions of the data.



1674
1675
1676
# File 'bedrock/cfn_data_automation_project.rb', line 1674

def generative_field
  @generative_field
end

Class Method Details

.jsii_propertiesObject



1676
1677
1678
1679
1680
1681
# File 'bedrock/cfn_data_automation_project.rb', line 1676

def self.jsii_properties
  {
    :extraction => "extraction",
    :generative_field => "generativeField",
  }
end

Instance Method Details

#to_jsiiObject



1683
1684
1685
1686
1687
1688
1689
1690
# File 'bedrock/cfn_data_automation_project.rb', line 1683

def to_jsii
  result = {}
  result.merge!({
    "extraction" => @extraction,
    "generativeField" => @generative_field,
  })
  result.compact
end