Struct aws_sdk_networkfirewall::types::ActionDefinition
source · #[non_exhaustive]pub struct ActionDefinition {
pub publish_metric_action: Option<PublishMetricAction>,
}
Expand description
A custom action to use in stateless rule actions settings. This is used in CustomAction
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.publish_metric_action: 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.
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() -> ActionDefinitionBuilder
pub fn builder() -> ActionDefinitionBuilder
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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ActionDefinition
impl Debug for ActionDefinition
source§impl PartialEq for ActionDefinition
impl PartialEq for ActionDefinition
source§fn eq(&self, other: &ActionDefinition) -> bool
fn eq(&self, other: &ActionDefinition) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ActionDefinition
Auto Trait Implementations§
impl Freeze for ActionDefinition
impl RefUnwindSafe for ActionDefinition
impl Send for ActionDefinition
impl Sync for ActionDefinition
impl Unpin for ActionDefinition
impl UnwindSafe for ActionDefinition
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more