# StatefulRuleOptionsProperty

Additional options governing how Network Firewall handles the rule group.

You can only use these for stateful rule groups.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_networkfirewall as networkfirewall } from 'aws-cdk-lib';
const statefulRuleOptionsProperty: networkfirewall.CfnRuleGroup.StatefulRuleOptionsProperty = {
  ruleOrder: 'ruleOrder',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_networkfirewall as networkfirewall

stateful_rule_options_property = networkfirewall.CfnRuleGroup.StatefulRuleOptionsProperty(
    rule_order="ruleOrder"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.networkfirewall.*;

StatefulRuleOptionsProperty statefulRuleOptionsProperty = StatefulRuleOptionsProperty.builder()
        .ruleOrder("ruleOrder")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.NetworkFirewall;

var statefulRuleOptionsProperty = new StatefulRuleOptionsProperty {
    RuleOrder = "ruleOrder"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

statefulRuleOptionsProperty := &StatefulRuleOptionsProperty{
	RuleOrder: jsii.String("ruleOrder"),
}
```

## Properties

- `ruleOrder`: string — Indicates how to manage the order of the rule evaluation for the rule group.

  `DEFAULT_ACTION_ORDER` is the default behavior. Stateful rules are provided to the rule engine as Suricata compatible strings, and Suricata evaluates them based on certain settings. For more information, see [Evaluation order for stateful rules](https://docs.aws.amazon.com/network-firewall/latest/developerguide/suricata-rule-evaluation-order.html) in the *AWS Network Firewall Developer Guide* .
