Class: AWSCDK::MediaConnect::CfnFlow::SourcePriorityProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
media_connect/cfn_flow.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:) ⇒ SourcePriorityProperty

Returns a new instance of SourcePriorityProperty.

Parameters:

  • primary_source (String)

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



1944
1945
1946
1947
# File 'media_connect/cfn_flow.rb', line 1944

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

Instance Attribute Details

#primary_sourceString (readonly)

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



1953
1954
1955
# File 'media_connect/cfn_flow.rb', line 1953

def primary_source
  @primary_source
end

Class Method Details

.jsii_propertiesObject



1955
1956
1957
1958
1959
# File 'media_connect/cfn_flow.rb', line 1955

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

Instance Method Details

#to_jsiiObject



1961
1962
1963
1964
1965
1966
1967
# File 'media_connect/cfn_flow.rb', line 1961

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