Class: AWSCDK::MediaConnect::CfnFlowOutput::DestinationConfigurationProperty

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

Overview

The transport parameters that you want to associate with an outbound media stream.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(destination_ip:, destination_port:, interface:) ⇒ DestinationConfigurationProperty

Returns a new instance of DestinationConfigurationProperty.

Parameters:

  • destination_ip (String)

    The IP address where you want MediaConnect to send contents of the media stream.

  • destination_port (Numeric)

    The port that you want MediaConnect to use when it distributes the media stream to the output.

  • interface (AWSCDK::IResolvable, AWSCDK::MediaConnect::CfnFlowOutput::InterfaceProperty)

    The VPC interface that you want to use for the media stream associated with the output.



788
789
790
791
792
793
794
795
# File 'media_connect/cfn_flow_output.rb', line 788

def initialize(destination_ip:, destination_port:, interface:)
  @destination_ip = destination_ip
  Jsii::Type.check_type(@destination_ip, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "destinationIp")
  @destination_port = destination_port
  Jsii::Type.check_type(@destination_port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "destinationPort")
  @interface = interface.is_a?(Hash) ? ::AWSCDK::MediaConnect::CfnFlowOutput::InterfaceProperty.new(**interface.transform_keys(&:to_sym)) : interface
  Jsii::Type.check_type(@interface, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWNvbm5lY3QuQ2ZuRmxvd091dHB1dC5JbnRlcmZhY2VQcm9wZXJ0eSJ9XX19")), "interface")
end

Instance Attribute Details

#destination_ipString (readonly)

The IP address where you want MediaConnect to send contents of the media stream.



801
802
803
# File 'media_connect/cfn_flow_output.rb', line 801

def destination_ip
  @destination_ip
end

#destination_portNumeric (readonly)

The port that you want MediaConnect to use when it distributes the media stream to the output.



806
807
808
# File 'media_connect/cfn_flow_output.rb', line 806

def destination_port
  @destination_port
end

#interfaceAWSCDK::IResolvable, AWSCDK::MediaConnect::CfnFlowOutput::InterfaceProperty (readonly)

The VPC interface that you want to use for the media stream associated with the output.



811
812
813
# File 'media_connect/cfn_flow_output.rb', line 811

def interface
  @interface
end

Class Method Details

.jsii_propertiesObject



813
814
815
816
817
818
819
# File 'media_connect/cfn_flow_output.rb', line 813

def self.jsii_properties
  {
    :destination_ip => "destinationIp",
    :destination_port => "destinationPort",
    :interface => "interface",
  }
end

Instance Method Details

#to_jsiiObject



821
822
823
824
825
826
827
828
829
# File 'media_connect/cfn_flow_output.rb', line 821

def to_jsii
  result = {}
  result.merge!({
    "destinationIp" => @destination_ip,
    "destinationPort" => @destination_port,
    "interface" => @interface,
  })
  result.compact
end