Class: AWSCDK::MediaConnect::CfnFlow::SilentAudioProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaConnect::CfnFlow::SilentAudioProperty
- Defined in:
- media_connect/cfn_flow.rb
Overview
Configures settings for the SilentAudio metric.
Instance Attribute Summary collapse
-
#state ⇒ String?
readonly
Indicates whether the
SilentAudiometric is enabled or disabled. -
#threshold_seconds ⇒ Numeric?
readonly
Specifies the number of consecutive seconds of silence that triggers an event or alert.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(state: nil, threshold_seconds: nil) ⇒ SilentAudioProperty
constructor
A new instance of SilentAudioProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(state: nil, threshold_seconds: nil) ⇒ SilentAudioProperty
Returns a new instance of SilentAudioProperty.
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
#state ⇒ String? (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_seconds ⇒ Numeric? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |