NAME

Paws::NetworkFirewall::StatefulRule

USAGE

This class represents one of two things:

Arguments in a call to a service

Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. Each attribute should be used as a named argument in the calls that expect this type of object.

As an example, if Att1 is expected to be a Paws::NetworkFirewall::StatefulRule object:

$service_obj->Method(Att1 => { Action => $value, ..., RuleOptions => $value  });

Results returned from an API call

Use accessors for each attribute. If Att1 is expected to be an Paws::NetworkFirewall::StatefulRule object:

$result = $service_obj->Method(...);
$result->Att1->Action

DESCRIPTION

A single 5-tuple stateful rule, for use in a stateful rule group.

ATTRIBUTES

REQUIRED Action => Str

Defines what Network Firewall should do with the packets in a traffic flow when the flow matches the stateful rule criteria. 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:

  • PASS - Permits the packets to go to the intended destination.

  • DROP - Blocks the packets from going to the intended destination and sends an alert log message, if alert logging is configured in the Firewall LoggingConfiguration.

  • ALERT - Permits the packets to go to the intended destination and sends an alert log message, if alert logging is configured in the Firewall LoggingConfiguration.

    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.

REQUIRED Header => Paws::NetworkFirewall::Header

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

REQUIRED RuleOptions => ArrayRef[Paws::NetworkFirewall::RuleOption]

SEE ALSO

This class forms part of Paws, describing an object used in Paws::NetworkFirewall

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues