Class: AWSCDK::Bedrock::CfnDataAutomationProject::AudioStandardGenerativeFieldProperty

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

Overview

Settings for generating descriptions of audio.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of AudioStandardGenerativeFieldProperty.

Parameters:

  • state (String)

    Whether generating descriptions is enabled for audio.

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

    The types of description to generate.



885
886
887
888
889
890
# File 'bedrock/cfn_data_automation_project.rb', line 885

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 audio.



896
897
898
# File 'bedrock/cfn_data_automation_project.rb', line 896

def state
  @state
end

#typesArray<String>? (readonly)

The types of description to generate.



901
902
903
# File 'bedrock/cfn_data_automation_project.rb', line 901

def types
  @types
end

Class Method Details

.jsii_propertiesObject



903
904
905
906
907
908
# File 'bedrock/cfn_data_automation_project.rb', line 903

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

Instance Method Details

#to_jsiiObject



910
911
912
913
914
915
916
917
# File 'bedrock/cfn_data_automation_project.rb', line 910

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