

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

# AWS::SecurityAgent::Pentest NetworkTrafficConfig
<a name="aws-properties-securityagent-pentest-networktrafficconfig"></a>

The network traffic configuration for a pentest, including custom headers and traffic rules.

## Syntax
<a name="aws-properties-securityagent-pentest-networktrafficconfig-syntax"></a>

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

### JSON
<a name="aws-properties-securityagent-pentest-networktrafficconfig-syntax.json"></a>

```
{
  "[CustomHeaders](#cfn-securityagent-pentest-networktrafficconfig-customheaders)" : {{[ CustomHeader, ... ]}},
  "[Rules](#cfn-securityagent-pentest-networktrafficconfig-rules)" : {{[ NetworkTrafficRule, ... ]}}
}
```

### YAML
<a name="aws-properties-securityagent-pentest-networktrafficconfig-syntax.yaml"></a>

```
  [CustomHeaders](#cfn-securityagent-pentest-networktrafficconfig-customheaders): {{
    - CustomHeader}}
  [Rules](#cfn-securityagent-pentest-networktrafficconfig-rules): {{
    - NetworkTrafficRule}}
```

## Properties
<a name="aws-properties-securityagent-pentest-networktrafficconfig-properties"></a>

`CustomHeaders`  <a name="cfn-securityagent-pentest-networktrafficconfig-customheaders"></a>
The list of custom HTTP headers to include in network traffic during testing.  
*Required*: No  
*Type*: Array of [CustomHeader](aws-properties-securityagent-pentest-customheader.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Rules`  <a name="cfn-securityagent-pentest-networktrafficconfig-rules"></a>
The list of network traffic rules that control which URLs are allowed or denied during testing.  
*Required*: No  
*Type*: Array of [NetworkTrafficRule](aws-properties-securityagent-pentest-networktrafficrule.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)