Struct aws_sdk_securityhub::model::AwsEc2NetworkAclEntry
source · [−]#[non_exhaustive]pub struct AwsEc2NetworkAclEntry {
pub cidr_block: Option<String>,
pub egress: 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: 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: 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: i32
The rule number. The rules are processed in order by their number.
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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
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