Class: AWSCDK::ElementalInference::CfnFeed::SubtitlingConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ElementalInference::CfnFeed::SubtitlingConfigProperty
- Defined in:
- elemental_inference/cfn_feed.rb
Overview
Instance Attribute Summary collapse
- #aspect_ratio ⇒ AWSCDK::IResolvable, ... readonly
- #dictionary ⇒ String? readonly
- #language ⇒ String readonly
- #profanity_filter ⇒ String? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(language:, aspect_ratio: nil, dictionary: nil, profanity_filter: nil) ⇒ SubtitlingConfigProperty
constructor
A new instance of SubtitlingConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(language:, aspect_ratio: nil, dictionary: nil, profanity_filter: nil) ⇒ SubtitlingConfigProperty
Returns a new instance of SubtitlingConfigProperty.
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
#aspect_ratio ⇒ AWSCDK::IResolvable, ... (readonly)
727 728 729 |
# File 'elemental_inference/cfn_feed.rb', line 727 def aspect_ratio @aspect_ratio end |
#dictionary ⇒ String? (readonly)
730 731 732 |
# File 'elemental_inference/cfn_feed.rb', line 730 def dictionary @dictionary end |
#language ⇒ String (readonly)
724 725 726 |
# File 'elemental_inference/cfn_feed.rb', line 724 def language @language end |
#profanity_filter ⇒ String? (readonly)
733 734 735 |
# File 'elemental_inference/cfn_feed.rb', line 733 def profanity_filter @profanity_filter end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |