Class: AWSCDK::MediaConnect::CfnFlow::FrozenFramesProperty

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

Overview

Configures settings for the FrozenFrames metric.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(state: nil, threshold_seconds: nil) ⇒ FrozenFramesProperty

Returns a new instance of FrozenFramesProperty.

Parameters:

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

    Indicates whether the FrozenFrames metric is enabled or disabled.

  • threshold_seconds (Numeric, nil) (defaults to: nil)

    Specifies the number of consecutive seconds of a static image that triggers an event or alert.



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

#stateString? (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_secondsNumeric? (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_propertiesObject



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_jsiiObject



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