Class: AWSCDK::ElementalInference::CfnFeed::SubtitlingConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
elemental_inference/cfn_feed.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(language:, aspect_ratio: nil, dictionary: nil, profanity_filter: nil) ⇒ SubtitlingConfigProperty

Returns a new instance of SubtitlingConfigProperty.

Parameters:



711
712
713
714
715
716
717
718
719
720
# File 'elemental_inference/cfn_feed.rb', line 711

def initialize(language:, aspect_ratio: nil, dictionary: nil, profanity_filter: nil)
  @language = language
  Jsii::Type.check_type(@language, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "language")
  @aspect_ratio = aspect_ratio.is_a?(Hash) ? ::AWSCDK::ElementalInference::CfnFeed::AspectRatioProperty.new(**aspect_ratio.transform_keys(&:to_sym)) : aspect_ratio
  Jsii::Type.check_type(@aspect_ratio, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lbGVtZW50YWxpbmZlcmVuY2UuQ2ZuRmVlZC5Bc3BlY3RSYXRpb1Byb3BlcnR5In1dfX0=")), "aspectRatio") unless @aspect_ratio.nil?
  @dictionary = dictionary
  Jsii::Type.check_type(@dictionary, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dictionary") unless @dictionary.nil?
  @profanity_filter = profanity_filter
  Jsii::Type.check_type(@profanity_filter, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "profanityFilter") unless @profanity_filter.nil?
end

Instance Attribute Details

#dictionaryString? (readonly)



730
731
732
# File 'elemental_inference/cfn_feed.rb', line 730

def dictionary
  @dictionary
end

#languageString (readonly)



724
725
726
# File 'elemental_inference/cfn_feed.rb', line 724

def language
  @language
end

#profanity_filterString? (readonly)



733
734
735
# File 'elemental_inference/cfn_feed.rb', line 733

def profanity_filter
  @profanity_filter
end

Class Method Details

.jsii_propertiesObject



735
736
737
738
739
740
741
742
# File 'elemental_inference/cfn_feed.rb', line 735

def self.jsii_properties
  {
    :language => "language",
    :aspect_ratio => "aspectRatio",
    :dictionary => "dictionary",
    :profanity_filter => "profanityFilter",
  }
end

Instance Method Details

#to_jsiiObject



744
745
746
747
748
749
750
751
752
753
# File 'elemental_inference/cfn_feed.rb', line 744

def to_jsii
  result = {}
  result.merge!({
    "language" => @language,
    "aspectRatio" => @aspect_ratio,
    "dictionary" => @dictionary,
    "profanityFilter" => @profanity_filter,
  })
  result.compact
end