Class: AWSCDK::MediaConnect::CfnFlow::BlackFramesProperty

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

Overview

Configures settings for the BlackFrames metric.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of BlackFramesProperty.

Parameters:

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

    Indicates whether the BlackFrames metric is enabled or disabled..

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

    Specifies the number of consecutive seconds of black frames that triggers an event or alert.



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

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



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_jsiiObject



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