Struct aws_sdk_ec2::model::TrafficMirrorFilterRule
source · [−]#[non_exhaustive]pub struct TrafficMirrorFilterRule {
pub traffic_mirror_filter_rule_id: Option<String>,
pub traffic_mirror_filter_id: Option<String>,
pub traffic_direction: Option<TrafficDirection>,
pub rule_number: Option<i32>,
pub rule_action: Option<TrafficMirrorRuleAction>,
pub protocol: Option<i32>,
pub destination_port_range: Option<TrafficMirrorPortRange>,
pub source_port_range: Option<TrafficMirrorPortRange>,
pub destination_cidr_block: Option<String>,
pub source_cidr_block: Option<String>,
pub description: Option<String>,
}
Expand description
Describes the Traffic Mirror rule.
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.traffic_mirror_filter_rule_id: Option<String>
The ID of the Traffic Mirror rule.
traffic_mirror_filter_id: Option<String>
The ID of the Traffic Mirror filter that the rule is associated with.
traffic_direction: Option<TrafficDirection>
The traffic direction assigned to the Traffic Mirror rule.
rule_number: Option<i32>
The rule number of the Traffic Mirror rule.
rule_action: Option<TrafficMirrorRuleAction>
The action assigned to the Traffic Mirror rule.
protocol: Option<i32>
The protocol assigned to the Traffic Mirror rule.
destination_port_range: Option<TrafficMirrorPortRange>
The destination port range assigned to the Traffic Mirror rule.
source_port_range: Option<TrafficMirrorPortRange>
The source port range assigned to the Traffic Mirror rule.
destination_cidr_block: Option<String>
The destination CIDR block assigned to the Traffic Mirror rule.
source_cidr_block: Option<String>
The source CIDR block assigned to the Traffic Mirror rule.
description: Option<String>
The description of the Traffic Mirror rule.
Implementations
sourceimpl TrafficMirrorFilterRule
impl TrafficMirrorFilterRule
sourcepub fn traffic_mirror_filter_rule_id(&self) -> Option<&str>
pub fn traffic_mirror_filter_rule_id(&self) -> Option<&str>
The ID of the Traffic Mirror rule.
sourcepub fn traffic_mirror_filter_id(&self) -> Option<&str>
pub fn traffic_mirror_filter_id(&self) -> Option<&str>
The ID of the Traffic Mirror filter that the rule is associated with.
sourcepub fn traffic_direction(&self) -> Option<&TrafficDirection>
pub fn traffic_direction(&self) -> Option<&TrafficDirection>
The traffic direction assigned to the Traffic Mirror rule.
sourcepub fn rule_number(&self) -> Option<i32>
pub fn rule_number(&self) -> Option<i32>
The rule number of the Traffic Mirror rule.
sourcepub fn rule_action(&self) -> Option<&TrafficMirrorRuleAction>
pub fn rule_action(&self) -> Option<&TrafficMirrorRuleAction>
The action assigned to the Traffic Mirror rule.
sourcepub fn destination_port_range(&self) -> Option<&TrafficMirrorPortRange>
pub fn destination_port_range(&self) -> Option<&TrafficMirrorPortRange>
The destination port range assigned to the Traffic Mirror rule.
sourcepub fn source_port_range(&self) -> Option<&TrafficMirrorPortRange>
pub fn source_port_range(&self) -> Option<&TrafficMirrorPortRange>
The source port range assigned to the Traffic Mirror rule.
sourcepub fn destination_cidr_block(&self) -> Option<&str>
pub fn destination_cidr_block(&self) -> Option<&str>
The destination CIDR block assigned to the Traffic Mirror rule.
sourcepub fn source_cidr_block(&self) -> Option<&str>
pub fn source_cidr_block(&self) -> Option<&str>
The source CIDR block assigned to the Traffic Mirror rule.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the Traffic Mirror rule.
sourceimpl TrafficMirrorFilterRule
impl TrafficMirrorFilterRule
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture TrafficMirrorFilterRule
.
Trait Implementations
sourceimpl Clone for TrafficMirrorFilterRule
impl Clone for TrafficMirrorFilterRule
sourcefn clone(&self) -> TrafficMirrorFilterRule
fn clone(&self) -> TrafficMirrorFilterRule
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 TrafficMirrorFilterRule
impl Debug for TrafficMirrorFilterRule
sourceimpl PartialEq<TrafficMirrorFilterRule> for TrafficMirrorFilterRule
impl PartialEq<TrafficMirrorFilterRule> for TrafficMirrorFilterRule
sourcefn eq(&self, other: &TrafficMirrorFilterRule) -> bool
fn eq(&self, other: &TrafficMirrorFilterRule) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TrafficMirrorFilterRule) -> bool
fn ne(&self, other: &TrafficMirrorFilterRule) -> bool
This method tests for !=
.
impl StructuralPartialEq for TrafficMirrorFilterRule
Auto Trait Implementations
impl RefUnwindSafe for TrafficMirrorFilterRule
impl Send for TrafficMirrorFilterRule
impl Sync for TrafficMirrorFilterRule
impl Unpin for TrafficMirrorFilterRule
impl UnwindSafe for TrafficMirrorFilterRule
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> 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