Interface ActionDefinition.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ActionDefinition.Builder,ActionDefinition>,SdkBuilder<ActionDefinition.Builder,ActionDefinition>,SdkPojo
- Enclosing class:
- ActionDefinition
public static interface ActionDefinition.Builder extends SdkPojo, CopyableBuilder<ActionDefinition.Builder,ActionDefinition>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ActionDefinition.BuilderpublishMetricAction(Consumer<PublishMetricAction.Builder> publishMetricAction)Stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet.ActionDefinition.BuilderpublishMetricAction(PublishMetricAction publishMetricAction)Stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
publishMetricAction
ActionDefinition.Builder publishMetricAction(PublishMetricAction 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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
publishMetricAction
default ActionDefinition.Builder publishMetricAction(Consumer<PublishMetricAction.Builder> 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.
This is a convenience method that creates an instance of thePublishMetricAction.Builderavoiding the need to create one manually viaPublishMetricAction.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topublishMetricAction(PublishMetricAction).- Parameters:
publishMetricAction- a consumer that will call methods onPublishMetricAction.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
publishMetricAction(PublishMetricAction)
-
-