Class: AWSCDK::MediaConnect::CfnBridge::SourcePriorityProperty

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

Overview

The priority you want to assign to a source.

You can have a primary stream and a backup stream or two equally prioritized streams.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(primary_source: nil) ⇒ SourcePriorityProperty

Returns a new instance of SourcePriorityProperty.

Parameters:

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

    The name of the source you choose as the primary source for this flow.



1085
1086
1087
1088
# File 'media_connect/cfn_bridge.rb', line 1085

def initialize(primary_source: nil)
  @primary_source = primary_source
  Jsii::Type.check_type(@primary_source, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "primarySource") unless @primary_source.nil?
end

Instance Attribute Details

#primary_sourceString? (readonly)

The name of the source you choose as the primary source for this flow.



1094
1095
1096
# File 'media_connect/cfn_bridge.rb', line 1094

def primary_source
  @primary_source
end

Class Method Details

.jsii_propertiesObject



1096
1097
1098
1099
1100
# File 'media_connect/cfn_bridge.rb', line 1096

def self.jsii_properties
  {
    :primary_source => "primarySource",
  }
end

Instance Method Details

#to_jsiiObject



1102
1103
1104
1105
1106
1107
1108
# File 'media_connect/cfn_bridge.rb', line 1102

def to_jsii
  result = {}
  result.merge!({
    "primarySource" => @primary_source,
  })
  result.compact
end