Struct aws_sdk_ec2::model::NetworkAclEntry
source · #[non_exhaustive]pub struct NetworkAclEntry { /* private fields */ }
Expand description
Describes an entry in a network ACL.
Implementations§
source§impl 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.
source§impl NetworkAclEntry
impl NetworkAclEntry
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture NetworkAclEntry
.
Trait Implementations§
source§impl Clone for NetworkAclEntry
impl Clone for NetworkAclEntry
source§fn clone(&self) -> NetworkAclEntry
fn clone(&self) -> NetworkAclEntry
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NetworkAclEntry
impl Debug for NetworkAclEntry
source§impl PartialEq<NetworkAclEntry> for NetworkAclEntry
impl PartialEq<NetworkAclEntry> for NetworkAclEntry
source§fn 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 ==
.