

# FirewallStatefulRule
<a name="API_FirewallStatefulRule"></a>

Describes a stateful rule.

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

 ** DestinationPortSet.N **   
The destination ports.  
Type: Array of [PortRange](API_PortRange.md) objects  
Required: No

 ** DestinationSet.N **   
The destination IP addresses, in CIDR notation.  
Type: Array of strings  
Required: No

 ** direction **   
The direction. The possible values are `FORWARD` and `ANY`.  
Type: String  
Required: No

 ** protocol **   
The protocol.  
Type: String  
Required: No

 ** ruleAction **   
The rule action. The possible values are `pass`, `drop`, and `alert`.  
Type: String  
Required: No

 ** ruleGroupArn **   
The ARN of the stateful rule group.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 1283.  
Required: No

 ** SourcePortSet.N **   
The source ports.  
Type: Array of [PortRange](API_PortRange.md) objects  
Required: No

 ** SourceSet.N **   
The source IP addresses, in CIDR notation.  
Type: Array of strings  
Required: No

## See Also
<a name="API_FirewallStatefulRule_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/ec2-2016-11-15/FirewallStatefulRule) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/ec2-2016-11-15/FirewallStatefulRule) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/ec2-2016-11-15/FirewallStatefulRule) 