Class: AWSCDK::MediaLive::CfnChannel::FailoverConditionSettingsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaLive::CfnChannel::FailoverConditionSettingsProperty
- Defined in:
- media_live/cfn_channel.rb
Overview
Settings for one failover condition.
The parent of this entity is FailoverCondition.
Instance Attribute Summary collapse
-
#audio_silence_settings ⇒ AWSCDK::IResolvable, ...
readonly
MediaLive will perform a failover if the specified audio selector is silent for the specified period.
-
#input_loss_settings ⇒ AWSCDK::IResolvable, ...
readonly
MediaLive will perform a failover if content is not detected in this input for the specified period.
-
#video_black_settings ⇒ AWSCDK::IResolvable, ...
readonly
MediaLive will perform a failover if content is considered black for the specified period.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(audio_silence_settings: nil, input_loss_settings: nil, video_black_settings: nil) ⇒ FailoverConditionSettingsProperty
constructor
A new instance of FailoverConditionSettingsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(audio_silence_settings: nil, input_loss_settings: nil, video_black_settings: nil) ⇒ FailoverConditionSettingsProperty
Returns a new instance of FailoverConditionSettingsProperty.
5538 5539 5540 5541 5542 5543 5544 5545 |
# File 'media_live/cfn_channel.rb', line 5538 def initialize(audio_silence_settings: nil, input_loss_settings: nil, video_black_settings: nil) @audio_silence_settings = audio_silence_settings.is_a?(Hash) ? ::AWSCDK::MediaLive::CfnChannel::AudioSilenceFailoverSettingsProperty.new(**audio_silence_settings.transform_keys(&:to_sym)) : audio_silence_settings Jsii::Type.check_type(@audio_silence_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWxpdmUuQ2ZuQ2hhbm5lbC5BdWRpb1NpbGVuY2VGYWlsb3ZlclNldHRpbmdzUHJvcGVydHkifV19fQ==")), "audioSilenceSettings") unless @audio_silence_settings.nil? @input_loss_settings = input_loss_settings.is_a?(Hash) ? ::AWSCDK::MediaLive::CfnChannel::InputLossFailoverSettingsProperty.new(**input_loss_settings.transform_keys(&:to_sym)) : input_loss_settings Jsii::Type.check_type(@input_loss_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWxpdmUuQ2ZuQ2hhbm5lbC5JbnB1dExvc3NGYWlsb3ZlclNldHRpbmdzUHJvcGVydHkifV19fQ==")), "inputLossSettings") unless @input_loss_settings.nil? @video_black_settings = video_black_settings.is_a?(Hash) ? ::AWSCDK::MediaLive::CfnChannel::VideoBlackFailoverSettingsProperty.new(**video_black_settings.transform_keys(&:to_sym)) : video_black_settings Jsii::Type.check_type(@video_black_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWxpdmUuQ2ZuQ2hhbm5lbC5WaWRlb0JsYWNrRmFpbG92ZXJTZXR0aW5nc1Byb3BlcnR5In1dfX0=")), "videoBlackSettings") unless @video_black_settings.nil? end |
Instance Attribute Details
#audio_silence_settings ⇒ AWSCDK::IResolvable, ... (readonly)
MediaLive will perform a failover if the specified audio selector is silent for the specified period.
5551 5552 5553 |
# File 'media_live/cfn_channel.rb', line 5551 def audio_silence_settings @audio_silence_settings end |
#input_loss_settings ⇒ AWSCDK::IResolvable, ... (readonly)
MediaLive will perform a failover if content is not detected in this input for the specified period.
5556 5557 5558 |
# File 'media_live/cfn_channel.rb', line 5556 def input_loss_settings @input_loss_settings end |
#video_black_settings ⇒ AWSCDK::IResolvable, ... (readonly)
MediaLive will perform a failover if content is considered black for the specified period.
5561 5562 5563 |
# File 'media_live/cfn_channel.rb', line 5561 def video_black_settings @video_black_settings end |
Class Method Details
.jsii_properties ⇒ Object
5563 5564 5565 5566 5567 5568 5569 |
# File 'media_live/cfn_channel.rb', line 5563 def self.jsii_properties { :audio_silence_settings => "audioSilenceSettings", :input_loss_settings => "inputLossSettings", :video_black_settings => "videoBlackSettings", } end |
Instance Method Details
#to_jsii ⇒ Object
5571 5572 5573 5574 5575 5576 5577 5578 5579 |
# File 'media_live/cfn_channel.rb', line 5571 def to_jsii result = {} result.merge!({ "audioSilenceSettings" => @audio_silence_settings, "inputLossSettings" => @input_loss_settings, "videoBlackSettings" => @video_black_settings, }) result.compact end |