Class CfnRuleGroupPropsMixin.ActionDefinitionProperty
A custom action to use in stateless rule actions settings.
Implements
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.NetworkFirewall.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnRuleGroupPropsMixin.ActionDefinitionProperty : CfnRuleGroupPropsMixin.IActionDefinitionProperty
Syntax (vb)
Public Class CfnRuleGroupPropsMixin.ActionDefinitionProperty Implements CfnRuleGroupPropsMixin.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.Mixins.Preview.AWS.NetworkFirewall.Mixins;
var actionDefinitionProperty = new ActionDefinitionProperty {
PublishMetricAction = new PublishMetricActionProperty {
Dimensions = new [] { new DimensionProperty {
Value = "value"
} }
}
};
Synopsis
Constructors
| ActionDefinitionProperty() | A custom action to use in stateless rule actions settings. |
Properties
| PublishMetricAction | Stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet. |
Constructors
ActionDefinitionProperty()
A custom action to use in stateless rule actions settings.
public ActionDefinitionProperty()
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.Mixins.Preview.AWS.NetworkFirewall.Mixins;
var actionDefinitionProperty = new ActionDefinitionProperty {
PublishMetricAction = new PublishMetricActionProperty {
Dimensions = new [] { new DimensionProperty {
Value = "value"
} }
}
};
Properties
PublishMetricAction
Stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet.
public object? PublishMetricAction { get; set; }
Property Value
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.
Type union: either IResolvable or CfnRuleGroupPropsMixin.IPublishMetricActionProperty