

# NetworkTrafficConfig
<a name="API_NetworkTrafficConfig"></a>

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

## Contents
<a name="API_NetworkTrafficConfig_Contents"></a>

 ** customHeaders **   <a name="securityagent-Type-NetworkTrafficConfig-customHeaders"></a>
The list of custom HTTP headers to include in network traffic during testing.  
Type: Array of [CustomHeader](API_CustomHeader.md) objects  
Required: No

 ** rules **   <a name="securityagent-Type-NetworkTrafficConfig-rules"></a>
The list of network traffic rules that control which URLs are allowed or denied during testing.  
Type: Array of [NetworkTrafficRule](API_NetworkTrafficRule.md) objects  
Required: No

## See Also
<a name="API_NetworkTrafficConfig_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/securityagent-2025-09-06/NetworkTrafficConfig) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/securityagent-2025-09-06/NetworkTrafficConfig) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/securityagent-2025-09-06/NetworkTrafficConfig) 