Class CfnRuleGroup.ActionDefinitionProperty
A custom action to use in stateless rule actions settings.
Inheritance
System.Object
CfnRuleGroup.ActionDefinitionProperty
Implements
Namespace: Amazon.CDK.AWS.NetworkFirewall
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ActionDefinitionProperty : Object, CfnRuleGroup.IActionDefinitionProperty
Syntax (vb)
Public Class ActionDefinitionProperty
Inherits Object
Implements CfnRuleGroup.IActionDefinitionProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.NetworkFirewall;
var actionDefinitionProperty = new ActionDefinitionProperty {
PublishMetricAction = new PublishMetricActionProperty {
Dimensions = new [] { new DimensionProperty {
Value = "value"
} }
}
};
Synopsis
Constructors
ActionDefinitionProperty() |
Properties
PublishMetricAction | Stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet. |
Constructors
ActionDefinitionProperty()
public ActionDefinitionProperty()
Properties
PublishMetricAction
Stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet.
public object PublishMetricAction { get; set; }
Property Value
System.Object
Remarks
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.