Class: AWSCDK::MediaConnect::CfnFlow::BlackFramesProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaConnect::CfnFlow::BlackFramesProperty
- Defined in:
- media_connect/cfn_flow.rb
Overview
Configures settings for the BlackFrames metric.
Instance Attribute Summary collapse
-
#state ⇒ String?
readonly
Indicates whether the
BlackFramesmetric is enabled or disabled.. -
#threshold_seconds ⇒ Numeric?
readonly
Specifies the number of consecutive seconds of black frames that triggers an event or alert.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(state: nil, threshold_seconds: nil) ⇒ BlackFramesProperty
constructor
A new instance of BlackFramesProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(state: nil, threshold_seconds: nil) ⇒ BlackFramesProperty
Returns a new instance of BlackFramesProperty.
754 755 756 757 758 759 |
# File 'media_connect/cfn_flow.rb', line 754 def initialize(state: nil, threshold_seconds: nil) @state = state Jsii::Type.check_type(@state, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "state") unless @state.nil? @threshold_seconds = threshold_seconds Jsii::Type.check_type(@threshold_seconds, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "thresholdSeconds") unless @threshold_seconds.nil? end |
Instance Attribute Details
#state ⇒ String? (readonly)
Indicates whether the BlackFrames metric is enabled or disabled..
765 766 767 |
# File 'media_connect/cfn_flow.rb', line 765 def state @state end |
#threshold_seconds ⇒ Numeric? (readonly)
Specifies the number of consecutive seconds of black frames that triggers an event or alert.
770 771 772 |
# File 'media_connect/cfn_flow.rb', line 770 def threshold_seconds @threshold_seconds end |
Class Method Details
.jsii_properties ⇒ Object
772 773 774 775 776 777 |
# File 'media_connect/cfn_flow.rb', line 772 def self.jsii_properties { :state => "state", :threshold_seconds => "thresholdSeconds", } end |
Instance Method Details
#to_jsii ⇒ Object
779 780 781 782 783 784 785 786 |
# File 'media_connect/cfn_flow.rb', line 779 def to_jsii result = {} result.merge!({ "state" => @state, "thresholdSeconds" => @threshold_seconds, }) result.compact end |