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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-networkfirewall/lib/aws-sdk-networkfirewall/types.rb

Overview

Note:

When making an API call, you may pass ActionDefinition data as a hash:

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

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

Constant Summary collapse

SENSITIVE =
[]

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.



43
44
45
46
47
# File 'gems/aws-sdk-networkfirewall/lib/aws-sdk-networkfirewall/types.rb', line 43

class ActionDefinition < Struct.new(
  :publish_metric_action)
  SENSITIVE = []
  include Aws::Structure
end