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
show all
Defined in:
(unknown)

Overview

Note:

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

Instance Attribute Details

#custom_actionsArray<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.

Returns:

  • (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_rulesArray<Types::StatelessRule>

Defines the set of stateless rules for use in a stateless rule group.

Returns:

  • (Array<Types::StatelessRule>)

    Defines the set of stateless rules for use in a stateless rule group.