Class: AWSCDK::MediaLive::CfnChannel::CaptionSelectorProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaLive::CfnChannel::CaptionSelectorProperty
- Defined in:
- media_live/cfn_channel.rb
Overview
Information about one caption to extract from the input.
The parent of this entity is InputSettings.
Instance Attribute Summary collapse
-
#language_code ⇒ String?
readonly
When specified, this field indicates the three-letter language code of the captions track to extract from the source.
-
#name ⇒ String?
readonly
The name identifier for a captions selector.
-
#selector_settings ⇒ AWSCDK::IResolvable, ...
readonly
Information about the specific audio to extract from the input.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(language_code: nil, name: nil, selector_settings: nil) ⇒ CaptionSelectorProperty
constructor
A new instance of CaptionSelectorProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(language_code: nil, name: nil, selector_settings: nil) ⇒ CaptionSelectorProperty
Returns a new instance of CaptionSelectorProperty.
3661 3662 3663 3664 3665 3666 3667 3668 |
# File 'media_live/cfn_channel.rb', line 3661 def initialize(language_code: nil, name: nil, selector_settings: nil) @language_code = language_code Jsii::Type.check_type(@language_code, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "languageCode") unless @language_code.nil? @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? @selector_settings = selector_settings.is_a?(Hash) ? ::AWSCDK::MediaLive::CfnChannel::CaptionSelectorSettingsProperty.new(**selector_settings.transform_keys(&:to_sym)) : selector_settings Jsii::Type.check_type(@selector_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWxpdmUuQ2ZuQ2hhbm5lbC5DYXB0aW9uU2VsZWN0b3JTZXR0aW5nc1Byb3BlcnR5In1dfX0=")), "selectorSettings") unless @selector_settings.nil? end |
Instance Attribute Details
#language_code ⇒ String? (readonly)
When specified, this field indicates the three-letter language code of the captions track to extract from the source.
3674 3675 3676 |
# File 'media_live/cfn_channel.rb', line 3674 def language_code @language_code end |
#name ⇒ String? (readonly)
The name identifier for a captions selector.
This name is used to associate this captions selector with one or more captions descriptions. Names must be unique within a channel.
3681 3682 3683 |
# File 'media_live/cfn_channel.rb', line 3681 def name @name end |
#selector_settings ⇒ AWSCDK::IResolvable, ... (readonly)
Information about the specific audio to extract from the input.
3686 3687 3688 |
# File 'media_live/cfn_channel.rb', line 3686 def selector_settings @selector_settings end |
Class Method Details
.jsii_properties ⇒ Object
3688 3689 3690 3691 3692 3693 3694 |
# File 'media_live/cfn_channel.rb', line 3688 def self.jsii_properties { :language_code => "languageCode", :name => "name", :selector_settings => "selectorSettings", } end |
Instance Method Details
#to_jsii ⇒ Object
3696 3697 3698 3699 3700 3701 3702 3703 3704 |
# File 'media_live/cfn_channel.rb', line 3696 def to_jsii result = {} result.merge!({ "languageCode" => @language_code, "name" => @name, "selectorSettings" => @selector_settings, }) result.compact end |