Class: AWSCDK::Bedrock::CfnDataAutomationProject::ModalityRoutingConfigurationProperty

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

Overview

This element allows you to set up where JPEG, PNG, MOV, and MP4 files get routed to for processing.

JPEG routing applies to both "JPEG" and "JPG" file extensions.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(jpeg: nil, mov: nil, mp4: nil, png: nil) ⇒ ModalityRoutingConfigurationProperty

Returns a new instance of ModalityRoutingConfigurationProperty.

Parameters:

  • jpeg (String, nil) (defaults to: nil)

    Sets whether JPEG files are routed to document or image processing.

  • mov (String, nil) (defaults to: nil)

    Sets whether MOV files are routed to audio or video processing.

  • mp4 (String, nil) (defaults to: nil)

    Sets whether MP4 files are routed to audio or video processing.

  • png (String, nil) (defaults to: nil)

    Sets whether PNG files are routed to document or image processing.



1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
# File 'bedrock/cfn_data_automation_project.rb', line 1740

def initialize(jpeg: nil, mov: nil, mp4: nil, png: nil)
  @jpeg = jpeg
  Jsii::Type.check_type(@jpeg, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "jpeg") unless @jpeg.nil?
  @mov = mov
  Jsii::Type.check_type(@mov, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "mov") unless @mov.nil?
  @mp4 = mp4
  Jsii::Type.check_type(@mp4, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "mp4") unless @mp4.nil?
  @png = png
  Jsii::Type.check_type(@png, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "png") unless @png.nil?
end

Instance Attribute Details

#jpegString? (readonly)

Sets whether JPEG files are routed to document or image processing.



1755
1756
1757
# File 'bedrock/cfn_data_automation_project.rb', line 1755

def jpeg
  @jpeg
end

#movString? (readonly)

Sets whether MOV files are routed to audio or video processing.



1760
1761
1762
# File 'bedrock/cfn_data_automation_project.rb', line 1760

def mov
  @mov
end

#mp4String? (readonly)

Sets whether MP4 files are routed to audio or video processing.



1765
1766
1767
# File 'bedrock/cfn_data_automation_project.rb', line 1765

def mp4
  @mp4
end

#pngString? (readonly)

Sets whether PNG files are routed to document or image processing.



1770
1771
1772
# File 'bedrock/cfn_data_automation_project.rb', line 1770

def png
  @png
end

Class Method Details

.jsii_propertiesObject



1772
1773
1774
1775
1776
1777
1778
1779
# File 'bedrock/cfn_data_automation_project.rb', line 1772

def self.jsii_properties
  {
    :jpeg => "jpeg",
    :mov => "mov",
    :mp4 => "mp4",
    :png => "png",
  }
end

Instance Method Details

#to_jsiiObject



1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
# File 'bedrock/cfn_data_automation_project.rb', line 1781

def to_jsii
  result = {}
  result.merge!({
    "jpeg" => @jpeg,
    "mov" => @mov,
    "mp4" => @mp4,
    "png" => @png,
  })
  result.compact
end