SourceMonitoringConfigProperty Struct
The SourceMonitoringConfig property type specifies the source monitoring settings for an AWS::MediaConnect::Flow .
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_mediaconnect as mediaconnect } from 'aws-cdk-lib';
const sourceMonitoringConfigProperty: mediaconnect.CfnFlow.SourceMonitoringConfigProperty = {
audioMonitoringSettings: [{
silentAudio: {
state: 'state',
thresholdSeconds: 123,
},
}],
contentQualityAnalysisState: 'contentQualityAnalysisState',
thumbnailState: 'thumbnailState',
videoMonitoringSettings: [{
blackFrames: {
state: 'state',
thresholdSeconds: 123,
},
frozenFrames: {
state: 'state',
thresholdSeconds: 123,
},
}],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_mediaconnect as mediaconnect
source_monitoring_config_property = mediaconnect.CfnFlow.SourceMonitoringConfigProperty(
audio_monitoring_settings=[mediaconnect.CfnFlow.AudioMonitoringSettingProperty(
silent_audio=mediaconnect.CfnFlow.SilentAudioProperty(
state="state",
threshold_seconds=123
)
)],
content_quality_analysis_state="contentQualityAnalysisState",
thumbnail_state="thumbnailState",
video_monitoring_settings=[mediaconnect.CfnFlow.VideoMonitoringSettingProperty(
black_frames=mediaconnect.CfnFlow.BlackFramesProperty(
state="state",
threshold_seconds=123
),
frozen_frames=mediaconnect.CfnFlow.FrozenFramesProperty(
state="state",
threshold_seconds=123
)
)]
)
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.*;
SourceMonitoringConfigProperty sourceMonitoringConfigProperty = SourceMonitoringConfigProperty.builder()
.audioMonitoringSettings(List.of(AudioMonitoringSettingProperty.builder()
.silentAudio(SilentAudioProperty.builder()
.state("state")
.thresholdSeconds(123)
.build())
.build()))
.contentQualityAnalysisState("contentQualityAnalysisState")
.thumbnailState("thumbnailState")
.videoMonitoringSettings(List.of(VideoMonitoringSettingProperty.builder()
.blackFrames(BlackFramesProperty.builder()
.state("state")
.thresholdSeconds(123)
.build())
.frozenFrames(FrozenFramesProperty.builder()
.state("state")
.thresholdSeconds(123)
.build())
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaConnect;
var sourceMonitoringConfigProperty = new SourceMonitoringConfigProperty {
AudioMonitoringSettings = new [] { new AudioMonitoringSettingProperty {
SilentAudio = new SilentAudioProperty {
State = "state",
ThresholdSeconds = 123
}
} },
ContentQualityAnalysisState = "contentQualityAnalysisState",
ThumbnailState = "thumbnailState",
VideoMonitoringSettings = new [] { new VideoMonitoringSettingProperty {
BlackFrames = new BlackFramesProperty {
State = "state",
ThresholdSeconds = 123
},
FrozenFrames = new FrozenFramesProperty {
State = "state",
ThresholdSeconds = 123
}
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/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/awscdk"
sourceMonitoringConfigProperty := &SourceMonitoringConfigProperty{
AudioMonitoringSettings: []interface{}{
&AudioMonitoringSettingProperty{
SilentAudio: &SilentAudioProperty{
State: jsii.String("state"),
ThresholdSeconds: jsii.Number(123),
},
},
},
ContentQualityAnalysisState: jsii.String("contentQualityAnalysisState"),
ThumbnailState: jsii.String("thumbnailState"),
VideoMonitoringSettings: []interface{}{
&VideoMonitoringSettingProperty{
BlackFrames: &BlackFramesProperty{
State: jsii.String("state"),
ThresholdSeconds: jsii.Number(123),
},
FrozenFrames: &FrozenFramesProperty{
State: jsii.String("state"),
ThresholdSeconds: jsii.Number(123),
},
},
},
}
Properties
audioMonitoringSettingsoptionalIResolvable | IResolvable | CfnFlow.audio_monitoring_settingsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AudioMonitoringSettingProperty]]]audioMonitoringSettingsoptionalIResolvableAudioMonitoringSettingsoptionalIResolvableAudioMonitoringSettingsoptionalinterface{} #Contains the settings for audio stream metrics monitoring.
contentQualityAnalysisStateoptionalstringcontent_quality_analysis_stateoptionalstrcontentQualityAnalysisStateoptionalStringContentQualityAnalysisStateoptionalstringContentQualityAnalysisStateoptional*string #Indicates whether content quality analysis is enabled or disabled.
thumbnailStateoptionalstringthumbnail_stateoptionalstrthumbnailStateoptionalStringThumbnailStateoptionalstringThumbnailStateoptional*string #The current state of the thumbnail monitoring.
- If you don't explicitly specify a value when creating a flow, no thumbnail state will be set.
- If you update an existing flow and remove a previously set thumbnail state, the value will change to
DISABLED.
videoMonitoringSettingsoptionalIResolvable | IResolvable | CfnFlow.video_monitoring_settingsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, VideoMonitoringSettingProperty]]]videoMonitoringSettingsoptionalIResolvableVideoMonitoringSettingsoptionalIResolvableVideoMonitoringSettingsoptionalinterface{} #Contains the settings for video stream metrics monitoring.