Struct aws_sdk_securityhub::types::AwsEc2NetworkAclEntry
source · #[non_exhaustive]pub struct AwsEc2NetworkAclEntry {
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<PortRangeFromTo>,
pub protocol: Option<String>,
pub rule_action: Option<String>,
pub rule_number: Option<i32>,
}
Expand description
A rule for the network ACL. Each rule allows or denies access based on the IP address, traffic direction, port, and protocol.
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 for which to deny or allow access.
egress: Option<bool>
Whether the rule is an egress rule. An egress rule is a rule that applies to traffic that leaves the subnet.
icmp_type_code: Option<IcmpTypeCode>
The Internet Control Message Protocol (ICMP) type and code for which to deny or allow access.
ipv6_cidr_block: Option<String>
The IPV6 network range for which to deny or allow access.
port_range: Option<PortRangeFromTo>
For TCP or UDP protocols, the range of ports that the rule applies to.
protocol: Option<String>
The protocol that the rule applies to. To deny or allow access to all protocols, use the value -1
.
rule_action: Option<String>
Whether the rule is used to allow access or deny access.
rule_number: Option<i32>
The rule number. The rules are processed in order by their number.
Implementations§
source§impl AwsEc2NetworkAclEntry
impl AwsEc2NetworkAclEntry
sourcepub fn cidr_block(&self) -> Option<&str>
pub fn cidr_block(&self) -> Option<&str>
The IPV4 network range for which to deny or allow access.
sourcepub fn egress(&self) -> Option<bool>
pub fn egress(&self) -> Option<bool>
Whether the rule is an egress rule. An egress rule is a rule that applies to traffic that leaves the subnet.
sourcepub fn icmp_type_code(&self) -> Option<&IcmpTypeCode>
pub fn icmp_type_code(&self) -> Option<&IcmpTypeCode>
The Internet Control Message Protocol (ICMP) type and code for which to deny or allow access.
sourcepub fn ipv6_cidr_block(&self) -> Option<&str>
pub fn ipv6_cidr_block(&self) -> Option<&str>
The IPV6 network range for which to deny or allow access.
sourcepub fn port_range(&self) -> Option<&PortRangeFromTo>
pub fn port_range(&self) -> Option<&PortRangeFromTo>
For TCP or UDP protocols, the range of ports that the rule applies to.
sourcepub fn protocol(&self) -> Option<&str>
pub fn protocol(&self) -> Option<&str>
The protocol that the rule applies to. To deny or allow access to all protocols, use the value -1
.
sourcepub fn rule_action(&self) -> Option<&str>
pub fn rule_action(&self) -> Option<&str>
Whether the rule is used to allow access or deny access.
sourcepub fn rule_number(&self) -> Option<i32>
pub fn rule_number(&self) -> Option<i32>
The rule number. The rules are processed in order by their number.
source§impl AwsEc2NetworkAclEntry
impl AwsEc2NetworkAclEntry
sourcepub fn builder() -> AwsEc2NetworkAclEntryBuilder
pub fn builder() -> AwsEc2NetworkAclEntryBuilder
Creates a new builder-style object to manufacture AwsEc2NetworkAclEntry
.
Trait Implementations§
source§impl Clone for AwsEc2NetworkAclEntry
impl Clone for AwsEc2NetworkAclEntry
source§fn clone(&self) -> AwsEc2NetworkAclEntry
fn clone(&self) -> AwsEc2NetworkAclEntry
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AwsEc2NetworkAclEntry
impl Debug for AwsEc2NetworkAclEntry
source§impl PartialEq for AwsEc2NetworkAclEntry
impl PartialEq for AwsEc2NetworkAclEntry
source§fn eq(&self, other: &AwsEc2NetworkAclEntry) -> bool
fn eq(&self, other: &AwsEc2NetworkAclEntry) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AwsEc2NetworkAclEntry
Auto Trait Implementations§
impl Freeze for AwsEc2NetworkAclEntry
impl RefUnwindSafe for AwsEc2NetworkAclEntry
impl Send for AwsEc2NetworkAclEntry
impl Sync for AwsEc2NetworkAclEntry
impl Unpin for AwsEc2NetworkAclEntry
impl UnwindSafe for AwsEc2NetworkAclEntry
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more