Show / Hide Table of Contents

Class CfnRuleGroupPropsMixin.StatefulRuleProperty

A single Suricata rules specification, for use in a stateful rule group.

Inheritance
object
CfnRuleGroupPropsMixin.StatefulRuleProperty
Implements
CfnRuleGroupPropsMixin.IStatefulRuleProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.NetworkFirewall
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnRuleGroupPropsMixin.StatefulRuleProperty : CfnRuleGroupPropsMixin.IStatefulRuleProperty
Syntax (vb)
Public Class CfnRuleGroupPropsMixin.StatefulRuleProperty Implements CfnRuleGroupPropsMixin.IStatefulRuleProperty
Remarks

Use this option to specify a simple Suricata rule with protocol, source and destination, ports, direction, and rule options. For information about the Suricata Rules format, see Rules Format .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-statefulrule.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.CfnPropertyMixins.AWS.NetworkFirewall;

             var statefulRuleProperty = new StatefulRuleProperty {
                 Action = "action",
                 Header = new HeaderProperty {
                     Destination = "destination",
                     DestinationPort = "destinationPort",
                     Direction = "direction",
                     Protocol = "protocol",
                     Source = "source",
                     SourcePort = "sourcePort"
                 },
                 RuleOptions = new [] { new RuleOptionProperty {
                     Keyword = "keyword",
                     Settings = new [] { "settings" }
                 } }
             };

Synopsis

Constructors

StatefulRuleProperty()

A single Suricata rules specification, for use in a stateful rule group.

Properties

Action

Defines what Network Firewall should do with the packets in a traffic flow when the flow matches the stateful rule criteria.

Header

The stateful inspection criteria for this rule, used to inspect traffic flows.

RuleOptions

Additional settings for a stateful rule, provided as keywords and settings.

Constructors

StatefulRuleProperty()

A single Suricata rules specification, for use in a stateful rule group.

public StatefulRuleProperty()
Remarks

Use this option to specify a simple Suricata rule with protocol, source and destination, ports, direction, and rule options. For information about the Suricata Rules format, see Rules Format .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-statefulrule.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.CfnPropertyMixins.AWS.NetworkFirewall;

             var statefulRuleProperty = new StatefulRuleProperty {
                 Action = "action",
                 Header = new HeaderProperty {
                     Destination = "destination",
                     DestinationPort = "destinationPort",
                     Direction = "direction",
                     Protocol = "protocol",
                     Source = "source",
                     SourcePort = "sourcePort"
                 },
                 RuleOptions = new [] { new RuleOptionProperty {
                     Keyword = "keyword",
                     Settings = new [] { "settings" }
                 } }
             };

Properties

Action

Defines what Network Firewall should do with the packets in a traffic flow when the flow matches the stateful rule criteria.

public string? Action { get; set; }
Property Value

string

Remarks

For all actions, Network Firewall performs the specified action and discontinues stateful inspection of the traffic flow.

The actions for a stateful rule are defined as follows:

    You can use this action to test a rule that you intend to use to drop traffic. You can enable the rule with ALERT action, verify in the logs that the rule is filtering as you want, then change the action to DROP .

      REJECT isn't currently available for use with IMAP and FTP protocols.

      See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-statefulrule.html#cfn-networkfirewall-rulegroup-statefulrule-action

      Header

      The stateful inspection criteria for this rule, used to inspect traffic flows.

      public object? Header { get; set; }
      Property Value

      object

      Remarks

      See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-statefulrule.html#cfn-networkfirewall-rulegroup-statefulrule-header

      Type union: either IResolvable or CfnRuleGroupPropsMixin.IHeaderProperty

      RuleOptions

      Additional settings for a stateful rule, provided as keywords and settings.

      public object? RuleOptions { get; set; }
      Property Value

      object

      Remarks

      See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-statefulrule.html#cfn-networkfirewall-rulegroup-statefulrule-ruleoptions

      Type union: either IResolvable or (either IResolvable or CfnRuleGroupPropsMixin.IRuleOptionProperty)[]

      Implements

      CfnRuleGroupPropsMixin.IStatefulRuleProperty
      Back to top Generated by DocFX