Class: AWSCDK::MediaLive::CfnCluster::InterfaceMappingProperty

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

Overview

Network mappings for the cluster.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(logical_interface_name: nil, network_id: nil) ⇒ InterfaceMappingProperty

Returns a new instance of InterfaceMappingProperty.

Parameters:

  • logical_interface_name (String, nil) (defaults to: nil)

    logical interface name, unique in the list.

  • network_id (String, nil) (defaults to: nil)

    Network Id to be associated with the logical interface name, can be duplicated in list.



664
665
666
667
668
669
# File 'media_live/cfn_cluster.rb', line 664

def initialize(logical_interface_name: nil, network_id: nil)
  @logical_interface_name = logical_interface_name
  Jsii::Type.check_type(@logical_interface_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logicalInterfaceName") unless @logical_interface_name.nil?
  @network_id = network_id
  Jsii::Type.check_type(@network_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "networkId") unless @network_id.nil?
end

Instance Attribute Details

#logical_interface_nameString? (readonly)

logical interface name, unique in the list.



675
676
677
# File 'media_live/cfn_cluster.rb', line 675

def logical_interface_name
  @logical_interface_name
end

#network_idString? (readonly)

Network Id to be associated with the logical interface name, can be duplicated in list.



680
681
682
# File 'media_live/cfn_cluster.rb', line 680

def network_id
  @network_id
end

Class Method Details

.jsii_propertiesObject



682
683
684
685
686
687
# File 'media_live/cfn_cluster.rb', line 682

def self.jsii_properties
  {
    :logical_interface_name => "logicalInterfaceName",
    :network_id => "networkId",
  }
end

Instance Method Details

#to_jsiiObject



689
690
691
692
693
694
695
696
# File 'media_live/cfn_cluster.rb', line 689

def to_jsii
  result = {}
  result.merge!({
    "logicalInterfaceName" => @logical_interface_name,
    "networkId" => @network_id,
  })
  result.compact
end