Struct aws_sdk_finspace::types::NetworkAclEntry
source · #[non_exhaustive]pub struct NetworkAclEntry {
pub rule_number: i32,
pub protocol: Option<String>,
pub rule_action: Option<RuleAction>,
pub port_range: Option<PortRange>,
pub icmp_type_code: Option<IcmpTypeCode>,
pub cidr_block: Option<String>,
}Expand description
The network access control list (ACL) is an optional layer of security for your VPC that acts as a firewall for controlling traffic in and out of one or more subnets. The entry is a set of numbered ingress and egress rules that determine whether a packet should be allowed in or out of a subnet associated with the ACL. We process the entries in the ACL according to the rule numbers, in ascending order.
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.rule_number: i32The rule number for the entry. For example 100. All the network ACL entries are processed in ascending order by rule number.
protocol: Option<String>The protocol number. A value of -1 means all the protocols.
rule_action: Option<RuleAction>Indicates whether to allow or deny the traffic that matches the rule.
port_range: Option<PortRange>The range of ports the rule applies to.
icmp_type_code: Option<IcmpTypeCode>Defines the ICMP protocol that consists of the ICMP type and code.
cidr_block: Option<String> The IPv4 network range to allow or deny, in CIDR notation. For example, 172.16.0.0/24. We modify the specified CIDR block to its canonical form. For example, if you specify 100.68.0.18/18, we modify it to 100.68.0.0/18.
Implementations§
source§impl NetworkAclEntry
impl NetworkAclEntry
sourcepub fn rule_number(&self) -> i32
pub fn rule_number(&self) -> i32
The rule number for the entry. For example 100. All the network ACL entries are processed in ascending order by rule number.
sourcepub fn protocol(&self) -> Option<&str>
pub fn protocol(&self) -> Option<&str>
The protocol number. A value of -1 means all the 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 port_range(&self) -> Option<&PortRange>
pub fn port_range(&self) -> Option<&PortRange>
The range of ports the rule applies to.
sourcepub fn icmp_type_code(&self) -> Option<&IcmpTypeCode>
pub fn icmp_type_code(&self) -> Option<&IcmpTypeCode>
Defines the ICMP protocol that consists of the ICMP type and code.
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. For example, 172.16.0.0/24. We modify the specified CIDR block to its canonical form. For example, if you specify 100.68.0.18/18, we modify it to 100.68.0.0/18.
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 for NetworkAclEntry
impl PartialEq 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 ==.