Class: AWSCDK::MediaLive::CfnChannel::InputAttachmentProperty

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

Overview

An input to attach to this channel.

This entity is at the top level in the channel.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(automatic_input_failover_settings: nil, input_attachment_name: nil, input_id: nil, input_settings: nil, logical_interface_names: nil) ⇒ InputAttachmentProperty

Returns a new instance of InputAttachmentProperty.

Parameters:



8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
# File 'media_live/cfn_channel.rb', line 8560

def initialize(automatic_input_failover_settings: nil, input_attachment_name: nil, input_id: nil, input_settings: nil, logical_interface_names: nil)
  @automatic_input_failover_settings = automatic_input_failover_settings.is_a?(Hash) ? ::AWSCDK::MediaLive::CfnChannel::AutomaticInputFailoverSettingsProperty.new(**automatic_input_failover_settings.transform_keys(&:to_sym)) : automatic_input_failover_settings
  Jsii::Type.check_type(@automatic_input_failover_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWxpdmUuQ2ZuQ2hhbm5lbC5BdXRvbWF0aWNJbnB1dEZhaWxvdmVyU2V0dGluZ3NQcm9wZXJ0eSJ9XX19")), "automaticInputFailoverSettings") unless @automatic_input_failover_settings.nil?
  @input_attachment_name = input_attachment_name
  Jsii::Type.check_type(@input_attachment_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "inputAttachmentName") unless @input_attachment_name.nil?
  @input_id = input_id
  Jsii::Type.check_type(@input_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "inputId") unless @input_id.nil?
  @input_settings = input_settings.is_a?(Hash) ? ::AWSCDK::MediaLive::CfnChannel::InputSettingsProperty.new(**input_settings.transform_keys(&:to_sym)) : input_settings
  Jsii::Type.check_type(@input_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWxpdmUuQ2ZuQ2hhbm5lbC5JbnB1dFNldHRpbmdzUHJvcGVydHkifV19fQ==")), "inputSettings") unless @input_settings.nil?
  @logical_interface_names = logical_interface_names
  Jsii::Type.check_type(@logical_interface_names, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "logicalInterfaceNames") unless @logical_interface_names.nil?
end

Instance Attribute Details

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

Settings to implement automatic input failover in this input.



8577
8578
8579
# File 'media_live/cfn_channel.rb', line 8577

def automatic_input_failover_settings
  @automatic_input_failover_settings
end

#input_attachment_nameString? (readonly)

A name for the attachment.

This is required if you want to use this input in an input switch action.



8584
8585
8586
# File 'media_live/cfn_channel.rb', line 8584

def input_attachment_name
  @input_attachment_name
end

#input_idString? (readonly)

The ID of the input to attach.



8589
8590
8591
# File 'media_live/cfn_channel.rb', line 8589

def input_id
  @input_id
end

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

Information about the content to extract from the input and about the general handling of the content.



8594
8595
8596
# File 'media_live/cfn_channel.rb', line 8594

def input_settings
  @input_settings
end

#logical_interface_namesArray<String>? (readonly)



8597
8598
8599
# File 'media_live/cfn_channel.rb', line 8597

def logical_interface_names
  @logical_interface_names
end

Class Method Details

.jsii_propertiesObject



8599
8600
8601
8602
8603
8604
8605
8606
8607
# File 'media_live/cfn_channel.rb', line 8599

def self.jsii_properties
  {
    :automatic_input_failover_settings => "automaticInputFailoverSettings",
    :input_attachment_name => "inputAttachmentName",
    :input_id => "inputId",
    :input_settings => "inputSettings",
    :logical_interface_names => "logicalInterfaceNames",
  }
end

Instance Method Details

#to_jsiiObject



8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
# File 'media_live/cfn_channel.rb', line 8609

def to_jsii
  result = {}
  result.merge!({
    "automaticInputFailoverSettings" => @automatic_input_failover_settings,
    "inputAttachmentName" => @input_attachment_name,
    "inputId" => @input_id,
    "inputSettings" => @input_settings,
    "logicalInterfaceNames" => @logical_interface_names,
  })
  result.compact
end