Class: AWSCDK::MediaLive::CfnChannel::AudioSelectorProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name: nil, selector_settings: nil) ⇒ AudioSelectorProperty

Returns a new instance of AudioSelectorProperty.

Parameters:



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

#nameString? (readonly)

A name for this AudioSelector.



2158
2159
2160
# File 'media_live/cfn_channel.rb', line 2158

def name
  @name
end

#selector_settingsAWSCDK::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_propertiesObject



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_jsiiObject



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