Struct aws_sdk_networkfirewall::model::action_definition::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for ActionDefinition
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn publish_metric_action(self, input: PublishMetricAction) -> Self
pub fn publish_metric_action(self, input: PublishMetricAction) -> Self
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.
sourcepub fn set_publish_metric_action(
self,
input: Option<PublishMetricAction>
) -> Self
pub fn set_publish_metric_action(
self,
input: Option<PublishMetricAction>
) -> Self
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.
sourcepub fn build(self) -> ActionDefinition
pub fn build(self) -> ActionDefinition
Consumes the builder and constructs a ActionDefinition
.