Skip to content
v2.277.0

Experimental

@aws-cdk/aws-mediaconnect-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

SourceMonitoringConfig Struct ​

Source monitoring settings.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as mediaconnect_alpha from '@aws-cdk/aws-mediaconnect-alpha';
import * as cdk from 'aws-cdk-lib';
const sourceMonitoringConfig: mediaconnect_alpha.SourceMonitoringConfig = {
  blackFrames: {
    state: mediaconnect_alpha.State.ENABLED,
    threshold: cdk.Duration.minutes(30),
  },
  contentQualityAnalysisState: mediaconnect_alpha.State.ENABLED,
  frozenFrames: {
    state: mediaconnect_alpha.State.ENABLED,
    threshold: cdk.Duration.minutes(30),
  },
  silentAudio: {
    state: mediaconnect_alpha.State.ENABLED,
    threshold: cdk.Duration.minutes(30),
  },
  thumbnailState: mediaconnect_alpha.State.ENABLED,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_mediaconnect_alpha as mediaconnect_alpha
import aws_cdk as cdk

source_monitoring_config = mediaconnect_alpha.SourceMonitoringConfig(
    black_frames=mediaconnect_alpha.MonitoringMetric(
        state=mediaconnect_alpha.State.ENABLED,
        threshold=cdk.Duration.minutes(30)
    ),
    content_quality_analysis_state=mediaconnect_alpha.State.ENABLED,
    frozen_frames=mediaconnect_alpha.MonitoringMetric(
        state=mediaconnect_alpha.State.ENABLED,
        threshold=cdk.Duration.minutes(30)
    ),
    silent_audio=mediaconnect_alpha.MonitoringMetric(
        state=mediaconnect_alpha.State.ENABLED,
        threshold=cdk.Duration.minutes(30)
    ),
    thumbnail_state=mediaconnect_alpha.State.ENABLED
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.mediaconnect.alpha.*;
import software.amazon.awscdk.*;

SourceMonitoringConfig sourceMonitoringConfig = SourceMonitoringConfig.builder()
        .blackFrames(MonitoringMetric.builder()
                .state(State.ENABLED)
                .threshold(Duration.minutes(30))
                .build())
        .contentQualityAnalysisState(State.ENABLED)
        .frozenFrames(MonitoringMetric.builder()
                .state(State.ENABLED)
                .threshold(Duration.minutes(30))
                .build())
        .silentAudio(MonitoringMetric.builder()
                .state(State.ENABLED)
                .threshold(Duration.minutes(30))
                .build())
        .thumbnailState(State.ENABLED)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaConnect.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaConnect.Alpha;
using Amazon.CDK;

var sourceMonitoringConfig = new SourceMonitoringConfig {
    BlackFrames = new MonitoringMetric {
        State = State.ENABLED,
        Threshold = Duration.Minutes(30)
    },
    ContentQualityAnalysisState = State.ENABLED,
    FrozenFrames = new MonitoringMetric {
        State = State.ENABLED,
        Threshold = Duration.Minutes(30)
    },
    SilentAudio = new MonitoringMetric {
        State = State.ENABLED,
        Threshold = Duration.Minutes(30)
    },
    ThumbnailState = State.ENABLED
};
go
// Install: go get github.com/aws/aws-cdk-go/awsmediaconnectalpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awsmediaconnectalpha"
import "github.com/aws/aws-cdk-go/awscdk"

sourceMonitoringConfig := &SourceMonitoringConfig{
	BlackFrames: &MonitoringMetric{
		State: mediaconnect_alpha.State_ENABLED,
		Threshold: cdk.Duration_Minutes(jsii.Number(30)),
	},
	ContentQualityAnalysisState: mediaconnect_alpha.State_ENABLED,
	FrozenFrames: &MonitoringMetric{
		State: mediaconnect_alpha.State_ENABLED,
		Threshold: cdk.Duration_*Minutes(jsii.Number(30)),
	},
	SilentAudio: &MonitoringMetric{
		State: mediaconnect_alpha.State_ENABLED,
		Threshold: cdk.Duration_*Minutes(jsii.Number(30)),
	},
	ThumbnailState: mediaconnect_alpha.State_ENABLED,
}

Properties ​

blackFramesoptionalMonitoringMetricblack_framesoptionalMonitoringMetricblackFramesoptionalMonitoringMetricBlackFramesoptionalMonitoringMetricBlackFramesoptionalMonitoringMetric#
Black-frames detection on the source.

Default: black frames monitoring is not configured

contentQualityAnalysisStateoptionalStatecontent_quality_analysis_stateoptionalStatecontentQualityAnalysisStateoptionalStateContentQualityAnalysisStateoptionalStateContentQualityAnalysisStateoptionalState#
Indicates whether content quality analysis is enabled or disabled.

Default: content quality analysis is disabled

frozenFramesoptionalMonitoringMetricfrozen_framesoptionalMonitoringMetricfrozenFramesoptionalMonitoringMetricFrozenFramesoptionalMonitoringMetricFrozenFramesoptionalMonitoringMetric#
Frozen-frames detection on the source.

Default: frozen frames monitoring is not configured

silentAudiooptionalMonitoringMetricsilent_audiooptionalMonitoringMetricsilentAudiooptionalMonitoringMetricSilentAudiooptionalMonitoringMetricSilentAudiooptionalMonitoringMetric#
Silent-audio detection on the source.

Default: silent audio monitoring is not configured

thumbnailStateoptionalStatethumbnail_stateoptionalStatethumbnailStateoptionalStateThumbnailStateoptionalStateThumbnailStateoptionalState#
The current state of the thumbnail monitoring.

Default: thumbnail monitoring is disabled