Class: AWSCDK::MediaConnect::CfnBridgeSourceProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaConnect::CfnBridgeSourceProps
- Defined in:
- media_connect/cfn_bridge_source_props.rb
Overview
Properties for defining a CfnBridgeSource.
Instance Attribute Summary collapse
-
#bridge_arn ⇒ String
readonly
The ARN of the bridge feeding this flow.
-
#flow_source ⇒ AWSCDK::IResolvable, ...
readonly
The source of the flow.
-
#name ⇒ String
readonly
The name of the flow source.
-
#network_source ⇒ AWSCDK::IResolvable, ...
readonly
The source of the network.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bridge_arn:, name:, flow_source: nil, network_source: nil) ⇒ CfnBridgeSourceProps
constructor
A new instance of CfnBridgeSourceProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bridge_arn:, name:, flow_source: nil, network_source: nil) ⇒ CfnBridgeSourceProps
Returns a new instance of CfnBridgeSourceProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'media_connect/cfn_bridge_source_props.rb', line 13 def initialize(bridge_arn:, name:, flow_source: nil, network_source: nil) @bridge_arn = bridge_arn Jsii::Type.check_type(@bridge_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bridgeArn") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @flow_source = flow_source.is_a?(Hash) ? ::AWSCDK::MediaConnect::CfnBridgeSource::BridgeFlowSourceProperty.new(**flow_source.transform_keys(&:to_sym)) : flow_source Jsii::Type.check_type(@flow_source, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWNvbm5lY3QuQ2ZuQnJpZGdlU291cmNlLkJyaWRnZUZsb3dTb3VyY2VQcm9wZXJ0eSJ9XX19")), "flowSource") unless @flow_source.nil? @network_source = network_source.is_a?(Hash) ? ::AWSCDK::MediaConnect::CfnBridgeSource::BridgeNetworkSourceProperty.new(**network_source.transform_keys(&:to_sym)) : network_source Jsii::Type.check_type(@network_source, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWNvbm5lY3QuQ2ZuQnJpZGdlU291cmNlLkJyaWRnZU5ldHdvcmtTb3VyY2VQcm9wZXJ0eSJ9XX19")), "networkSource") unless @network_source.nil? end |
Instance Attribute Details
#bridge_arn ⇒ String (readonly)
The ARN of the bridge feeding this flow.
28 29 30 |
# File 'media_connect/cfn_bridge_source_props.rb', line 28 def bridge_arn @bridge_arn end |
#flow_source ⇒ AWSCDK::IResolvable, ... (readonly)
The source of the flow.
40 41 42 |
# File 'media_connect/cfn_bridge_source_props.rb', line 40 def flow_source @flow_source end |
#name ⇒ String (readonly)
The name of the flow source.
This name is used to reference the source and must be unique among sources in this bridge.
35 36 37 |
# File 'media_connect/cfn_bridge_source_props.rb', line 35 def name @name end |
#network_source ⇒ AWSCDK::IResolvable, ... (readonly)
The source of the network.
45 46 47 |
# File 'media_connect/cfn_bridge_source_props.rb', line 45 def network_source @network_source end |
Class Method Details
.jsii_properties ⇒ Object
47 48 49 50 51 52 53 54 |
# File 'media_connect/cfn_bridge_source_props.rb', line 47 def self.jsii_properties { :bridge_arn => "bridgeArn", :name => "name", :flow_source => "flowSource", :network_source => "networkSource", } end |
Instance Method Details
#to_jsii ⇒ Object
56 57 58 59 60 61 62 63 64 65 |
# File 'media_connect/cfn_bridge_source_props.rb', line 56 def to_jsii result = {} result.merge!({ "bridgeArn" => @bridge_arn, "name" => @name, "flowSource" => @flow_source, "networkSource" => @network_source, }) result.compact end |