Struct aws_sdk_networkfirewall::model::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
sourceimpl 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.
sourceimpl ActionDefinition
impl ActionDefinition
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ActionDefinition
Trait Implementations
sourceimpl Clone for ActionDefinition
impl Clone for ActionDefinition
sourcefn clone(&self) -> ActionDefinition
fn clone(&self) -> ActionDefinition
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ActionDefinition
impl Debug for ActionDefinition
sourceimpl PartialEq<ActionDefinition> for ActionDefinition
impl PartialEq<ActionDefinition> for ActionDefinition
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ActionDefinition) -> bool
fn ne(&self, other: &ActionDefinition) -> bool
This method tests for !=
.
impl StructuralPartialEq for ActionDefinition
Auto Trait Implementations
impl RefUnwindSafe for ActionDefinition
impl Send for ActionDefinition
impl Sync for ActionDefinition
impl Unpin for ActionDefinition
impl UnwindSafe for ActionDefinition
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more