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
- Struct
- Aws::NetworkFirewall::Types::ActionDefinition
- Defined in:
- (unknown)
Overview
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
-
#publish_metric_action ⇒ Types::PublishMetricAction
Stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet.
Instance Attribute Details
#publish_metric_action ⇒ Types::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.