Struct aws_sdk_ec2::types::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§
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() -> NetworkAclEntryBuilder
pub fn builder() -> NetworkAclEntryBuilder
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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
self
and other
values to be equal, and is used
by ==
.