Interface CfnRuleGroup.ActionDefinitionProperty

All Superinterfaces:
All Known Implementing Classes:
Enclosing class:

@Stability(Stable) public static interface CfnRuleGroup.ActionDefinitionProperty extends
A custom action to use in stateless rule actions settings.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 ActionDefinitionProperty actionDefinitionProperty = ActionDefinitionProperty.builder()
  • Method Details

    • getPublishMetricAction

      @Stability(Stable) @Nullable default Object getPublishMetricAction()
      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.

    • builder

      @Stability(Stable) static CfnRuleGroup.ActionDefinitionProperty.Builder builder()
      a CfnRuleGroup.ActionDefinitionProperty.Builder of CfnRuleGroup.ActionDefinitionProperty