Class CfnRuleGroup.ActionDefinitionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.networkfirewall.CfnRuleGroup.ActionDefinitionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleGroup.ActionDefinitionProperty>
- Enclosing interface:
CfnRuleGroup.ActionDefinitionProperty
@Stability(Stable)
public static final class CfnRuleGroup.ActionDefinitionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuleGroup.ActionDefinitionProperty>
A builder for
CfnRuleGroup.ActionDefinitionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.publishMetricAction
(IResolvable publishMetricAction) Sets the value ofCfnRuleGroup.ActionDefinitionProperty.getPublishMetricAction()
publishMetricAction
(CfnRuleGroup.PublishMetricActionProperty publishMetricAction) Sets the value ofCfnRuleGroup.ActionDefinitionProperty.getPublishMetricAction()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
publishMetricAction
@Stability(Stable) public CfnRuleGroup.ActionDefinitionProperty.Builder publishMetricAction(IResolvable publishMetricAction) Sets the value ofCfnRuleGroup.ActionDefinitionProperty.getPublishMetricAction()
- Parameters:
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.
- Returns:
this
-
publishMetricAction
@Stability(Stable) public CfnRuleGroup.ActionDefinitionProperty.Builder publishMetricAction(CfnRuleGroup.PublishMetricActionProperty publishMetricAction) Sets the value ofCfnRuleGroup.ActionDefinitionProperty.getPublishMetricAction()
- Parameters:
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.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRuleGroup.ActionDefinitionProperty>
- Returns:
- a new instance of
CfnRuleGroup.ActionDefinitionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-