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