Class: AWSCDK::Bedrock::CfnDataAutomationProject::ImageStandardGenerativeFieldProperty

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

Overview

Settings for generating descriptions of images.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ImageStandardGenerativeFieldProperty.

Parameters:

  • state (String)

    Whether generating descriptions is enabled for images.

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

    Settings for generating descriptions of images.



1615
1616
1617
1618
1619
1620
# File 'bedrock/cfn_data_automation_project.rb', line 1615

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



1626
1627
1628
# File 'bedrock/cfn_data_automation_project.rb', line 1626

def state
  @state
end

#typesArray<String>? (readonly)

Settings for generating descriptions of images.



1631
1632
1633
# File 'bedrock/cfn_data_automation_project.rb', line 1631

def types
  @types
end

Class Method Details

.jsii_propertiesObject



1633
1634
1635
1636
1637
1638
# File 'bedrock/cfn_data_automation_project.rb', line 1633

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

Instance Method Details

#to_jsiiObject



1640
1641
1642
1643
1644
1645
1646
1647
# File 'bedrock/cfn_data_automation_project.rb', line 1640

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