

# CreateProxyRule


Individual rules that define match conditions and actions for application-layer traffic. Rules specify what to inspect (domains, headers, methods) and what action to take (allow, deny, alert). 

## Contents


 ** Action **   <a name="networkfirewall-Type-CreateProxyRule-Action"></a>
Action to take.   
Type: String  
Valid Values: `ALLOW | DENY | ALERT`   
Required: No

 ** Conditions **   <a name="networkfirewall-Type-CreateProxyRule-Conditions"></a>
Match criteria that specify what traffic attributes to examine. Conditions include operators (StringEquals, StringLike) and values to match against.   
Type: Array of [ProxyRuleCondition](API_ProxyRuleCondition.md) objects  
Required: No

 ** Description **   <a name="networkfirewall-Type-CreateProxyRule-Description"></a>
A description of the proxy rule.   
Type: String  
Length Constraints: Maximum length of 512.  
Pattern: `^.*$`   
Required: No

 ** InsertPosition **   <a name="networkfirewall-Type-CreateProxyRule-InsertPosition"></a>
Where to insert a proxy rule in a proxy rule group.   
Type: Integer  
Required: No

 ** ProxyRuleName **   <a name="networkfirewall-Type-CreateProxyRule-ProxyRuleName"></a>
The descriptive name of the proxy rule. You can't change the name of a proxy rule after you create it.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 128.  
Pattern: `^[a-zA-Z0-9-]+$`   
Required: No

## See Also


For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon SDK for C\$1\$1](https://docs.amazonaws.cn/goto/SdkForCpp/network-firewall-2020-11-12/CreateProxyRule) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/network-firewall-2020-11-12/CreateProxyRule) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/network-firewall-2020-11-12/CreateProxyRule) 