AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::NetworkFirewall::Types::ActionDefinition

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing ActionDefinition as input to an Aws::Client method, you can use a vanilla Hash:

{
  publish_metric_action: {
    dimensions: [ # required
      {
        value: "DimensionValue", # required
      },
    ],
  },
}

A custom action to use in stateless rule actions settings. This is used in CustomAction.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#publish_metric_actionTypes::PublishMetricAction

Stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet. This setting defines a CloudWatch dimension value to be published.

You can pair this custom action with any of the standard stateless rule actions. For example, you could pair this in a rule action with the standard action that forwards the packet for stateful inspection. Then, when a packet matches the rule, Network Firewall publishes metrics for the packet and forwards it.

Returns:

  • (Types::PublishMetricAction)

    Stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet.