# SourceMonitoringConfigProperty

The `SourceMonitoringConfig` property type specifies the source monitoring settings for an `AWS::MediaConnect::Flow` .

- Source: Generated at build time
- Type last changed: v2.178.0 · 6 Feb 2025

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
        }
    } }
};
```

Golang:

```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

- `audioMonitoringSettings`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFlow.AudioMonitoringSettingProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_mediaconnect.CfnFlow.AudioMonitoringSettingProperty.html)[] — Contains the settings for audio stream metrics monitoring.

- `contentQualityAnalysisState`: string — Indicates whether content quality analysis is enabled or disabled.

- `thumbnailState`: 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` .

- `videoMonitoringSettings`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFlow.VideoMonitoringSettingProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_mediaconnect.CfnFlow.VideoMonitoringSettingProperty.html)[] — Contains the settings for video stream metrics monitoring.
