You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::NetworkFirewall::Types::StatelessRulesAndCustomActions
- Inherits:
-
Struct
- Object
- Struct
- Aws::NetworkFirewall::Types::StatelessRulesAndCustomActions
- Defined in:
- (unknown)
Overview
When passing StatelessRulesAndCustomActions as input to an Aws::Client method, you can use a vanilla Hash:
{
stateless_rules: [ # required
{
rule_definition: { # required
match_attributes: { # required
sources: [
{
address_definition: "AddressDefinition", # required
},
],
destinations: [
{
address_definition: "AddressDefinition", # required
},
],
source_ports: [
{
from_port: 1, # required
to_port: 1, # required
},
],
destination_ports: [
{
from_port: 1, # required
to_port: 1, # required
},
],
protocols: [1],
tcp_flags: [
{
flags: ["FIN"], # required, accepts FIN, SYN, RST, PSH, ACK, URG, ECE, CWR
masks: ["FIN"], # accepts FIN, SYN, RST, PSH, ACK, URG, ECE, CWR
},
],
},
actions: ["CollectionMember_String"], # required
},
priority: 1, # required
},
],
custom_actions: [
{
action_name: "ActionName", # required
action_definition: { # required
publish_metric_action: {
dimensions: [ # required
{
value: "DimensionValue", # required
},
],
},
},
},
],
}
Stateless inspection criteria. Each stateless rule group uses exactly one of these data types to define its stateless rules.
Returned by:
Instance Attribute Summary collapse
-
#custom_actions ⇒ Array<Types::CustomAction>
Defines an array of individual custom action definitions that are available for use by the stateless rules in this
StatelessRulesAndCustomActions
specification. -
#stateless_rules ⇒ Array<Types::StatelessRule>
Defines the set of stateless rules for use in a stateless rule group.
Instance Attribute Details
#custom_actions ⇒ Array<Types::CustomAction>
Defines an array of individual custom action definitions that are
available for use by the stateless rules in this
StatelessRulesAndCustomActions
specification. You name each custom
action that you define, and then you can use it by name in your
StatelessRule RuleDefinition Actions
specification.
#stateless_rules ⇒ Array<Types::StatelessRule>
Defines the set of stateless rules for use in a stateless rule group.