Struct aws_sdk_securityhub::model::AwsEc2NetworkAclEntry
source · [−]#[non_exhaustive]pub struct AwsEc2NetworkAclEntry { /* private fields */ }
Expand description
A rule for the network ACL. Each rule allows or denies access based on the IP address, traffic direction, port, and protocol.
Implementations
sourceimpl 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) -> bool
pub fn egress(&self) -> 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) -> i32
pub fn rule_number(&self) -> i32
The rule number. The rules are processed in order by their number.
sourceimpl AwsEc2NetworkAclEntry
impl AwsEc2NetworkAclEntry
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AwsEc2NetworkAclEntry
.
Trait Implementations
sourceimpl Clone for AwsEc2NetworkAclEntry
impl Clone for AwsEc2NetworkAclEntry
sourcefn clone(&self) -> AwsEc2NetworkAclEntry
fn clone(&self) -> AwsEc2NetworkAclEntry
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 more
sourceimpl Debug for AwsEc2NetworkAclEntry
impl Debug for AwsEc2NetworkAclEntry
sourceimpl PartialEq<AwsEc2NetworkAclEntry> for AwsEc2NetworkAclEntry
impl PartialEq<AwsEc2NetworkAclEntry> for AwsEc2NetworkAclEntry
sourcefn eq(&self, other: &AwsEc2NetworkAclEntry) -> bool
fn eq(&self, other: &AwsEc2NetworkAclEntry) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AwsEc2NetworkAclEntry) -> bool
fn ne(&self, other: &AwsEc2NetworkAclEntry) -> bool
This method tests for !=
.
impl StructuralPartialEq for AwsEc2NetworkAclEntry
Auto Trait Implementations
impl RefUnwindSafe for AwsEc2NetworkAclEntry
impl Send for AwsEc2NetworkAclEntry
impl Sync for AwsEc2NetworkAclEntry
impl Unpin for AwsEc2NetworkAclEntry
impl UnwindSafe for AwsEc2NetworkAclEntry
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more