Class: AWSCDK::MediaConnect::CfnRouterInput::RouterInputConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
media_connect/cfn_router_input.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(failover: nil, media_connect_flow: nil, media_live_channel: nil, merge: nil, standard: nil) ⇒ RouterInputConfigurationProperty

Returns a new instance of RouterInputConfigurationProperty.

Parameters:



1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
# File 'media_connect/cfn_router_input.rb', line 1332

def initialize(failover: nil, media_connect_flow: nil, media_live_channel: nil, merge: nil, standard: nil)
  @failover = failover.is_a?(Hash) ? ::AWSCDK::MediaConnect::CfnRouterInput::FailoverRouterInputConfigurationProperty.new(**failover.transform_keys(&:to_sym)) : failover
  Jsii::Type.check_type(@failover, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWNvbm5lY3QuQ2ZuUm91dGVySW5wdXQuRmFpbG92ZXJSb3V0ZXJJbnB1dENvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "failover") unless @failover.nil?
  @media_connect_flow = media_connect_flow.is_a?(Hash) ? ::AWSCDK::MediaConnect::CfnRouterInput::MediaConnectFlowRouterInputConfigurationProperty.new(**media_connect_flow.transform_keys(&:to_sym)) : media_connect_flow
  Jsii::Type.check_type(@media_connect_flow, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWNvbm5lY3QuQ2ZuUm91dGVySW5wdXQuTWVkaWFDb25uZWN0Rmxvd1JvdXRlcklucHV0Q29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "mediaConnectFlow") unless @media_connect_flow.nil?
  @media_live_channel = media_live_channel.is_a?(Hash) ? ::AWSCDK::MediaConnect::CfnRouterInput::MediaLiveChannelRouterInputConfigurationProperty.new(**media_live_channel.transform_keys(&:to_sym)) : media_live_channel
  Jsii::Type.check_type(@media_live_channel, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWNvbm5lY3QuQ2ZuUm91dGVySW5wdXQuTWVkaWFMaXZlQ2hhbm5lbFJvdXRlcklucHV0Q29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "mediaLiveChannel") unless @media_live_channel.nil?
  @merge = merge.is_a?(Hash) ? ::AWSCDK::MediaConnect::CfnRouterInput::MergeRouterInputConfigurationProperty.new(**merge.transform_keys(&:to_sym)) : merge
  Jsii::Type.check_type(@merge, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWNvbm5lY3QuQ2ZuUm91dGVySW5wdXQuTWVyZ2VSb3V0ZXJJbnB1dENvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "merge") unless @merge.nil?
  @standard = standard.is_a?(Hash) ? ::AWSCDK::MediaConnect::CfnRouterInput::StandardRouterInputConfigurationProperty.new(**standard.transform_keys(&:to_sym)) : standard
  Jsii::Type.check_type(@standard, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWNvbm5lY3QuQ2ZuUm91dGVySW5wdXQuU3RhbmRhcmRSb3V0ZXJJbnB1dENvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "standard") unless @standard.nil?
end

Instance Attribute Details

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

Configuration settings for a failover router input that allows switching between two input sources.



1349
1350
1351
# File 'media_connect/cfn_router_input.rb', line 1349

def failover
  @failover
end

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

Configuration settings for connecting a router input to a flow output.



1354
1355
1356
# File 'media_connect/cfn_router_input.rb', line 1354

def media_connect_flow
  @media_connect_flow
end

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

Configuration settings for connecting a router input to a MediaLive channel output.



1359
1360
1361
# File 'media_connect/cfn_router_input.rb', line 1359

def media_live_channel
  @media_live_channel
end

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

Configuration settings for a merge router input that combines two input sources.



1364
1365
1366
# File 'media_connect/cfn_router_input.rb', line 1364

def merge
  @merge
end

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

The configuration settings for a standard router input, including the protocol, protocol-specific configuration, network interface, and availability zone.



1369
1370
1371
# File 'media_connect/cfn_router_input.rb', line 1369

def standard
  @standard
end

Class Method Details

.jsii_propertiesObject



1371
1372
1373
1374
1375
1376
1377
1378
1379
# File 'media_connect/cfn_router_input.rb', line 1371

def self.jsii_properties
  {
    :failover => "failover",
    :media_connect_flow => "mediaConnectFlow",
    :media_live_channel => "mediaLiveChannel",
    :merge => "merge",
    :standard => "standard",
  }
end

Instance Method Details

#to_jsiiObject



1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
# File 'media_connect/cfn_router_input.rb', line 1381

def to_jsii
  result = {}
  result.merge!({
    "failover" => @failover,
    "mediaConnectFlow" => @media_connect_flow,
    "mediaLiveChannel" => @media_live_channel,
    "merge" => @merge,
    "standard" => @standard,
  })
  result.compact
end