Struct aws_sdk_networkfirewall::model::ActionDefinition
source · #[non_exhaustive]pub struct ActionDefinition { /* private fields */ }
Expand description
A custom action to use in stateless rule actions settings. This is used in CustomAction
.
Implementations§
source§impl ActionDefinition
impl ActionDefinition
sourcepub fn publish_metric_action(&self) -> Option<&PublishMetricAction>
pub fn publish_metric_action(&self) -> Option<&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.
source§impl ActionDefinition
impl ActionDefinition
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ActionDefinition
.
Trait Implementations§
source§impl Clone for ActionDefinition
impl Clone for ActionDefinition
source§fn clone(&self) -> ActionDefinition
fn clone(&self) -> ActionDefinition
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ActionDefinition
impl Debug for ActionDefinition
source§impl PartialEq<ActionDefinition> for ActionDefinition
impl PartialEq<ActionDefinition> for ActionDefinition
source§fn eq(&self, other: &ActionDefinition) -> bool
fn eq(&self, other: &ActionDefinition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.