Class: AWSCDK::MediaConnect::CfnFlow::SilentAudioProperty

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

Overview

Configures settings for the SilentAudio metric.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of SilentAudioProperty.

Parameters:

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

    Indicates whether the SilentAudio metric is enabled or disabled.

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

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



1834
1835
1836
1837
1838
1839
# File 'media_connect/cfn_flow.rb', line 1834

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 SilentAudio metric is enabled or disabled.



1845
1846
1847
# File 'media_connect/cfn_flow.rb', line 1845

def state
  @state
end

#threshold_secondsNumeric? (readonly)

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



1850
1851
1852
# File 'media_connect/cfn_flow.rb', line 1850

def threshold_seconds
  @threshold_seconds
end

Class Method Details

.jsii_propertiesObject



1852
1853
1854
1855
1856
1857
# File 'media_connect/cfn_flow.rb', line 1852

def self.jsii_properties
  {
    :state => "state",
    :threshold_seconds => "thresholdSeconds",
  }
end

Instance Method Details

#to_jsiiObject



1859
1860
1861
1862
1863
1864
1865
1866
# File 'media_connect/cfn_flow.rb', line 1859

def to_jsii
  result = {}
  result.merge!({
    "state" => @state,
    "thresholdSeconds" => @threshold_seconds,
  })
  result.compact
end