Class: AWSCDK::MediaConnect::CfnFlow::VideoMonitoringSettingProperty

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

Overview

Specifies the configuration for video stream metrics monitoring.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(black_frames: nil, frozen_frames: nil) ⇒ VideoMonitoringSettingProperty

Returns a new instance of VideoMonitoringSettingProperty.

Parameters:



2281
2282
2283
2284
2285
2286
# File 'media_connect/cfn_flow.rb', line 2281

def initialize(black_frames: nil, frozen_frames: nil)
  @black_frames = black_frames.is_a?(Hash) ? ::AWSCDK::MediaConnect::CfnFlow::BlackFramesProperty.new(**black_frames.transform_keys(&:to_sym)) : black_frames
  Jsii::Type.check_type(@black_frames, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWNvbm5lY3QuQ2ZuRmxvdy5CbGFja0ZyYW1lc1Byb3BlcnR5In1dfX0=")), "blackFrames") unless @black_frames.nil?
  @frozen_frames = frozen_frames.is_a?(Hash) ? ::AWSCDK::MediaConnect::CfnFlow::FrozenFramesProperty.new(**frozen_frames.transform_keys(&:to_sym)) : frozen_frames
  Jsii::Type.check_type(@frozen_frames, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWNvbm5lY3QuQ2ZuRmxvdy5Gcm96ZW5GcmFtZXNQcm9wZXJ0eSJ9XX19")), "frozenFrames") unless @frozen_frames.nil?
end

Instance Attribute Details

#black_framesAWSCDK::IResolvable, ... (readonly)

Detects video frames that are black.



2292
2293
2294
# File 'media_connect/cfn_flow.rb', line 2292

def black_frames
  @black_frames
end

#frozen_framesAWSCDK::IResolvable, ... (readonly)

Detects video frames that have not changed.



2297
2298
2299
# File 'media_connect/cfn_flow.rb', line 2297

def frozen_frames
  @frozen_frames
end

Class Method Details

.jsii_propertiesObject



2299
2300
2301
2302
2303
2304
# File 'media_connect/cfn_flow.rb', line 2299

def self.jsii_properties
  {
    :black_frames => "blackFrames",
    :frozen_frames => "frozenFrames",
  }
end

Instance Method Details

#to_jsiiObject



2306
2307
2308
2309
2310
2311
2312
2313
# File 'media_connect/cfn_flow.rb', line 2306

def to_jsii
  result = {}
  result.merge!({
    "blackFrames" => @black_frames,
    "frozenFrames" => @frozen_frames,
  })
  result.compact
end