Class: AWSCDK::MediaConnect::CfnFlow::FrozenFramesProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaConnect::CfnFlow::FrozenFramesProperty
- Defined in:
- media_connect/cfn_flow.rb
Overview
Configures settings for the FrozenFrames metric.
Instance Attribute Summary collapse
-
#state ⇒ String?
readonly
Indicates whether the
FrozenFramesmetric is enabled or disabled. -
#threshold_seconds ⇒ Numeric?
readonly
Specifies the number of consecutive seconds of a static image that triggers an event or alert.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(state: nil, threshold_seconds: nil) ⇒ FrozenFramesProperty
constructor
A new instance of FrozenFramesProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(state: nil, threshold_seconds: nil) ⇒ FrozenFramesProperty
Returns a new instance of FrozenFramesProperty.
1218 1219 1220 1221 1222 1223 |
# File 'media_connect/cfn_flow.rb', line 1218 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 FrozenFrames metric is enabled or disabled.
1229 1230 1231 |
# File 'media_connect/cfn_flow.rb', line 1229 def state @state end |
#threshold_seconds ⇒ Numeric? (readonly)
Specifies the number of consecutive seconds of a static image that triggers an event or alert.
1234 1235 1236 |
# File 'media_connect/cfn_flow.rb', line 1234 def threshold_seconds @threshold_seconds end |
Class Method Details
.jsii_properties ⇒ Object
1236 1237 1238 1239 1240 1241 |
# File 'media_connect/cfn_flow.rb', line 1236 def self.jsii_properties { :state => "state", :threshold_seconds => "thresholdSeconds", } end |
Instance Method Details
#to_jsii ⇒ Object
1243 1244 1245 1246 1247 1248 1249 1250 |
# File 'media_connect/cfn_flow.rb', line 1243 def to_jsii result = {} result.merge!({ "state" => @state, "thresholdSeconds" => @threshold_seconds, }) result.compact end |