Struct aws_sdk_ec2::model::NetworkAclEntry
source · [−]#[non_exhaustive]pub struct NetworkAclEntry {
pub cidr_block: Option<String>,
pub egress: Option<bool>,
pub icmp_type_code: Option<IcmpTypeCode>,
pub ipv6_cidr_block: Option<String>,
pub port_range: Option<PortRange>,
pub protocol: Option<String>,
pub rule_action: Option<RuleAction>,
pub rule_number: Option<i32>,
}
Expand description
Describes an entry in a network ACL.
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.cidr_block: Option<String>
The IPv4 network range to allow or deny, in CIDR notation.
egress: Option<bool>
Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).
icmp_type_code: Option<IcmpTypeCode>
ICMP protocol: The ICMP type and code.
ipv6_cidr_block: Option<String>
The IPv6 network range to allow or deny, in CIDR notation.
port_range: Option<PortRange>
TCP or UDP protocols: The range of ports the rule applies to.
protocol: Option<String>
The protocol number. A value of "-1" means all protocols.
rule_action: Option<RuleAction>
Indicates whether to allow or deny the traffic that matches the rule.
rule_number: Option<i32>
The rule number for the entry. ACL entries are processed in ascending order by rule number.
Implementations
sourceimpl NetworkAclEntry
impl NetworkAclEntry
sourcepub fn cidr_block(&self) -> Option<&str>
pub fn cidr_block(&self) -> Option<&str>
The IPv4 network range to allow or deny, in CIDR notation.
sourcepub fn egress(&self) -> Option<bool>
pub fn egress(&self) -> Option<bool>
Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).
sourcepub fn icmp_type_code(&self) -> Option<&IcmpTypeCode>
pub fn icmp_type_code(&self) -> Option<&IcmpTypeCode>
ICMP protocol: The ICMP type and code.
sourcepub fn ipv6_cidr_block(&self) -> Option<&str>
pub fn ipv6_cidr_block(&self) -> Option<&str>
The IPv6 network range to allow or deny, in CIDR notation.
sourcepub fn port_range(&self) -> Option<&PortRange>
pub fn port_range(&self) -> Option<&PortRange>
TCP or UDP protocols: The range of ports the rule applies to.
sourcepub fn protocol(&self) -> Option<&str>
pub fn protocol(&self) -> Option<&str>
The protocol number. A value of "-1" means all protocols.
sourcepub fn rule_action(&self) -> Option<&RuleAction>
pub fn rule_action(&self) -> Option<&RuleAction>
Indicates whether to allow or deny the traffic that matches the rule.
sourcepub fn rule_number(&self) -> Option<i32>
pub fn rule_number(&self) -> Option<i32>
The rule number for the entry. ACL entries are processed in ascending order by rule number.
sourceimpl NetworkAclEntry
impl NetworkAclEntry
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture NetworkAclEntry
.
Trait Implementations
sourceimpl Clone for NetworkAclEntry
impl Clone for NetworkAclEntry
sourcefn clone(&self) -> NetworkAclEntry
fn clone(&self) -> NetworkAclEntry
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 NetworkAclEntry
impl Debug for NetworkAclEntry
sourceimpl PartialEq<NetworkAclEntry> for NetworkAclEntry
impl PartialEq<NetworkAclEntry> for NetworkAclEntry
sourcefn eq(&self, other: &NetworkAclEntry) -> bool
fn eq(&self, other: &NetworkAclEntry) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &NetworkAclEntry) -> bool
fn ne(&self, other: &NetworkAclEntry) -> bool
This method tests for !=
.
impl StructuralPartialEq for NetworkAclEntry
Auto Trait Implementations
impl RefUnwindSafe for NetworkAclEntry
impl Send for NetworkAclEntry
impl Sync for NetworkAclEntry
impl Unpin for NetworkAclEntry
impl UnwindSafe for NetworkAclEntry
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