Class: AWSCDK::MediaConnect::CfnBridge::FailoverConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaConnect::CfnBridge::FailoverConfigProperty
- Defined in:
- media_connect/cfn_bridge.rb
Overview
The settings for source failover.
Instance Attribute Summary collapse
-
#failover_mode ⇒ String
readonly
The type of failover you choose for this flow.
-
#source_priority ⇒ AWSCDK::IResolvable, ...
readonly
The priority you want to assign to a source.
-
#state ⇒ String?
readonly
The state of source failover on the flow.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(failover_mode:, source_priority: nil, state: nil) ⇒ FailoverConfigProperty
constructor
A new instance of FailoverConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(failover_mode:, source_priority: nil, state: nil) ⇒ FailoverConfigProperty
Returns a new instance of FailoverConfigProperty.
948 949 950 951 952 953 954 955 |
# File 'media_connect/cfn_bridge.rb', line 948 def initialize(failover_mode:, source_priority: nil, state: nil) @failover_mode = failover_mode Jsii::Type.check_type(@failover_mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "failoverMode") @source_priority = source_priority.is_a?(Hash) ? ::AWSCDK::MediaConnect::CfnBridge::SourcePriorityProperty.new(**source_priority.transform_keys(&:to_sym)) : source_priority Jsii::Type.check_type(@source_priority, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWNvbm5lY3QuQ2ZuQnJpZGdlLlNvdXJjZVByaW9yaXR5UHJvcGVydHkifV19fQ==")), "sourcePriority") unless @source_priority.nil? @state = state Jsii::Type.check_type(@state, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "state") unless @state.nil? end |
Instance Attribute Details
#failover_mode ⇒ String (readonly)
The type of failover you choose for this flow.
MERGE combines the source streams into a single stream, allowing graceful recovery from any single-source loss. FAILOVER allows switching between different streams.
963 964 965 |
# File 'media_connect/cfn_bridge.rb', line 963 def failover_mode @failover_mode end |
#source_priority ⇒ AWSCDK::IResolvable, ... (readonly)
The priority you want to assign to a source.
You can have a primary stream and a backup stream or two equally prioritized streams.
970 971 972 |
# File 'media_connect/cfn_bridge.rb', line 970 def source_priority @source_priority end |
#state ⇒ String? (readonly)
The state of source failover on the flow.
If the state is inactive, the flow can have only one source. If the state is active, the flow can have one or two sources.
977 978 979 |
# File 'media_connect/cfn_bridge.rb', line 977 def state @state end |
Class Method Details
.jsii_properties ⇒ Object
979 980 981 982 983 984 985 |
# File 'media_connect/cfn_bridge.rb', line 979 def self.jsii_properties { :failover_mode => "failoverMode", :source_priority => "sourcePriority", :state => "state", } end |
Instance Method Details
#to_jsii ⇒ Object
987 988 989 990 991 992 993 994 995 |
# File 'media_connect/cfn_bridge.rb', line 987 def to_jsii result = {} result.merge!({ "failoverMode" => @failover_mode, "sourcePriority" => @source_priority, "state" => @state, }) result.compact end |