Struct aws_sdk_ec2::model::NetworkAclEntry
source · [−]#[non_exhaustive]pub struct NetworkAclEntry { /* private fields */ }
Expand description
Describes an entry in a network ACL.
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 moresourceimpl 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
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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