public static interface ActionDefinition.Builder extends SdkPojo, CopyableBuilder<ActionDefinition.Builder,ActionDefinition>
| Modifier and Type | Method and Description |
|---|---|
default ActionDefinition.Builder |
publishMetricAction(Consumer<PublishMetricAction.Builder> publishMetricAction)
Stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching
packet.
|
ActionDefinition.Builder |
publishMetricAction(PublishMetricAction publishMetricAction)
Stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching
packet.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildActionDefinition.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.
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.
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.Builder avoiding the
need to create one manually via PublishMetricAction.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to publishMetricAction(PublishMetricAction).
publishMetricAction - a consumer that will call methods on PublishMetricAction.BuilderpublishMetricAction(PublishMetricAction)Copyright © 2023. All rights reserved.