Class: AWSCDK::MediaLive::CfnChannel::AudioSelectorProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaLive::CfnChannel::AudioSelectorProperty
- Defined in:
- media_live/cfn_channel.rb
Overview
Information about one audio to extract from the input.
The parent of this entity is InputSettings.
Instance Attribute Summary collapse
-
#name ⇒ String?
readonly
A name for this AudioSelector.
-
#selector_settings ⇒ AWSCDK::IResolvable, ...
readonly
Information about the specific audio to extract from the input.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name: nil, selector_settings: nil) ⇒ AudioSelectorProperty
constructor
A new instance of AudioSelectorProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name: nil, selector_settings: nil) ⇒ AudioSelectorProperty
Returns a new instance of AudioSelectorProperty.
2147 2148 2149 2150 2151 2152 |
# File 'media_live/cfn_channel.rb', line 2147 def initialize(name: nil, selector_settings: 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::AudioSelectorSettingsProperty.new(**selector_settings.transform_keys(&:to_sym)) : selector_settings Jsii::Type.check_type(@selector_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWxpdmUuQ2ZuQ2hhbm5lbC5BdWRpb1NlbGVjdG9yU2V0dGluZ3NQcm9wZXJ0eSJ9XX19")), "selectorSettings") unless @selector_settings.nil? end |
Instance Attribute Details
#name ⇒ String? (readonly)
A name for this AudioSelector.
2158 2159 2160 |
# File 'media_live/cfn_channel.rb', line 2158 def name @name end |
#selector_settings ⇒ AWSCDK::IResolvable, ... (readonly)
Information about the specific audio to extract from the input.
2163 2164 2165 |
# File 'media_live/cfn_channel.rb', line 2163 def selector_settings @selector_settings end |
Class Method Details
.jsii_properties ⇒ Object
2165 2166 2167 2168 2169 2170 |
# File 'media_live/cfn_channel.rb', line 2165 def self.jsii_properties { :name => "name", :selector_settings => "selectorSettings", } end |
Instance Method Details
#to_jsii ⇒ Object
2172 2173 2174 2175 2176 2177 2178 2179 |
# File 'media_live/cfn_channel.rb', line 2172 def to_jsii result = {} result.merge!({ "name" => @name, "selectorSettings" => @selector_settings, }) result.compact end |