

This is the new *Amazon CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [Amazon CloudFormation User Guide](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::MediaConnect::Flow BlackFrames
<a name="aws-properties-mediaconnect-flow-blackframes"></a>

 Configures settings for the `BlackFrames` metric.

## Syntax
<a name="aws-properties-mediaconnect-flow-blackframes-syntax"></a>

To declare this entity in your Amazon CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-mediaconnect-flow-blackframes-syntax.json"></a>

```
{
  "[State](#cfn-mediaconnect-flow-blackframes-state)" : {{String}},
  "[ThresholdSeconds](#cfn-mediaconnect-flow-blackframes-thresholdseconds)" : {{Integer}}
}
```

### YAML
<a name="aws-properties-mediaconnect-flow-blackframes-syntax.yaml"></a>

```
  [State](#cfn-mediaconnect-flow-blackframes-state): {{String}}
  [ThresholdSeconds](#cfn-mediaconnect-flow-blackframes-thresholdseconds): {{Integer}}
```

## Properties
<a name="aws-properties-mediaconnect-flow-blackframes-properties"></a>

`State`  <a name="cfn-mediaconnect-flow-blackframes-state"></a>
 Indicates whether the `BlackFrames` metric is enabled or disabled..  
*Required*: No  
*Type*: String  
*Allowed values*: `ENABLED | DISABLED`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`ThresholdSeconds`  <a name="cfn-mediaconnect-flow-blackframes-thresholdseconds"></a>
 Specifies the number of consecutive seconds of black frames that triggers an event or alert.  
*Required*: No  
*Type*: Integer  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)