Class: AWSCDK::Bedrock::CfnDataAutomationProject::OverrideConfigurationProperty

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

Overview

Additional settings for a project.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(audio: nil, document: nil, image: nil, modality_routing: nil, video: nil) ⇒ OverrideConfigurationProperty

Returns a new instance of OverrideConfigurationProperty.

Parameters:



1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
# File 'bedrock/cfn_data_automation_project.rb', line 1804

def initialize(audio: nil, document: nil, image: nil, modality_routing: nil, video: nil)
  @audio = audio.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnDataAutomationProject::AudioOverrideConfigurationProperty.new(**audio.transform_keys(&:to_sym)) : audio
  Jsii::Type.check_type(@audio, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbkRhdGFBdXRvbWF0aW9uUHJvamVjdC5BdWRpb092ZXJyaWRlQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "audio") unless @audio.nil?
  @document = document.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnDataAutomationProject::DocumentOverrideConfigurationProperty.new(**document.transform_keys(&:to_sym)) : document
  Jsii::Type.check_type(@document, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbkRhdGFBdXRvbWF0aW9uUHJvamVjdC5Eb2N1bWVudE92ZXJyaWRlQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "document") unless @document.nil?
  @image = image.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnDataAutomationProject::ImageOverrideConfigurationProperty.new(**image.transform_keys(&:to_sym)) : image
  Jsii::Type.check_type(@image, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbkRhdGFBdXRvbWF0aW9uUHJvamVjdC5JbWFnZU92ZXJyaWRlQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "image") unless @image.nil?
  @modality_routing = modality_routing.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnDataAutomationProject::ModalityRoutingConfigurationProperty.new(**modality_routing.transform_keys(&:to_sym)) : modality_routing
  Jsii::Type.check_type(@modality_routing, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbkRhdGFBdXRvbWF0aW9uUHJvamVjdC5Nb2RhbGl0eVJvdXRpbmdDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "modalityRouting") unless @modality_routing.nil?
  @video = video.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnDataAutomationProject::VideoOverrideConfigurationProperty.new(**video.transform_keys(&:to_sym)) : video
  Jsii::Type.check_type(@video, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbkRhdGFBdXRvbWF0aW9uUHJvamVjdC5WaWRlb092ZXJyaWRlQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "video") unless @video.nil?
end

Instance Attribute Details

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

This element declares whether your project will process audio files.



1821
1822
1823
# File 'bedrock/cfn_data_automation_project.rb', line 1821

def audio
  @audio
end

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

This element declares whether your project will process image files.



1831
1832
1833
# File 'bedrock/cfn_data_automation_project.rb', line 1831

def image
  @image
end

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

Lets you set which modalities certain file types are processed as.



1836
1837
1838
# File 'bedrock/cfn_data_automation_project.rb', line 1836

def modality_routing
  @modality_routing
end

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

This element declares whether your project will process video files.



1841
1842
1843
# File 'bedrock/cfn_data_automation_project.rb', line 1841

def video
  @video
end

Class Method Details

.jsii_propertiesObject



1843
1844
1845
1846
1847
1848
1849
1850
1851
# File 'bedrock/cfn_data_automation_project.rb', line 1843

def self.jsii_properties
  {
    :audio => "audio",
    :document => "document",
    :image => "image",
    :modality_routing => "modalityRouting",
    :video => "video",
  }
end

Instance Method Details

#to_jsiiObject



1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
# File 'bedrock/cfn_data_automation_project.rb', line 1853

def to_jsii
  result = {}
  result.merge!({
    "audio" => @audio,
    "document" => @document,
    "image" => @image,
    "modalityRouting" => @modality_routing,
    "video" => @video,
  })
  result.compact
end