Class: AWSCDK::MediaLive::CfnChannel::LinkedChannelSettingsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
media_live/cfn_channel.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(follower_channel_settings: nil, primary_channel_settings: nil) ⇒ LinkedChannelSettingsProperty

Returns a new instance of LinkedChannelSettingsProperty.

Parameters:



9088
9089
9090
9091
9092
9093
# File 'media_live/cfn_channel.rb', line 9088

def initialize(follower_channel_settings: nil, primary_channel_settings: nil)
  @follower_channel_settings = follower_channel_settings.is_a?(Hash) ? ::AWSCDK::MediaLive::CfnChannel::FollowerChannelSettingsProperty.new(**follower_channel_settings.transform_keys(&:to_sym)) : follower_channel_settings
  Jsii::Type.check_type(@follower_channel_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWxpdmUuQ2ZuQ2hhbm5lbC5Gb2xsb3dlckNoYW5uZWxTZXR0aW5nc1Byb3BlcnR5In1dfX0=")), "followerChannelSettings") unless @follower_channel_settings.nil?
  @primary_channel_settings = primary_channel_settings.is_a?(Hash) ? ::AWSCDK::MediaLive::CfnChannel::PrimaryChannelSettingsProperty.new(**primary_channel_settings.transform_keys(&:to_sym)) : primary_channel_settings
  Jsii::Type.check_type(@primary_channel_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWxpdmUuQ2ZuQ2hhbm5lbC5QcmltYXJ5Q2hhbm5lbFNldHRpbmdzUHJvcGVydHkifV19fQ==")), "primaryChannelSettings") unless @primary_channel_settings.nil?
end

Instance Attribute Details

#follower_channel_settingsAWSCDK::IResolvable, ... (readonly)



9097
9098
9099
# File 'media_live/cfn_channel.rb', line 9097

def follower_channel_settings
  @follower_channel_settings
end

#primary_channel_settingsAWSCDK::IResolvable, ... (readonly)



9100
9101
9102
# File 'media_live/cfn_channel.rb', line 9100

def primary_channel_settings
  @primary_channel_settings
end

Class Method Details

.jsii_propertiesObject



9102
9103
9104
9105
9106
9107
# File 'media_live/cfn_channel.rb', line 9102

def self.jsii_properties
  {
    :follower_channel_settings => "followerChannelSettings",
    :primary_channel_settings => "primaryChannelSettings",
  }
end

Instance Method Details

#to_jsiiObject



9109
9110
9111
9112
9113
9114
9115
9116
# File 'media_live/cfn_channel.rb', line 9109

def to_jsii
  result = {}
  result.merge!({
    "followerChannelSettings" => @follower_channel_settings,
    "primaryChannelSettings" => @primary_channel_settings,
  })
  result.compact
end