Struct aws_sdk_ec2::types::FirewallStatelessRule
source · #[non_exhaustive]pub struct FirewallStatelessRule {
pub rule_group_arn: Option<String>,
pub sources: Option<Vec<String>>,
pub destinations: Option<Vec<String>>,
pub source_ports: Option<Vec<PortRange>>,
pub destination_ports: Option<Vec<PortRange>>,
pub protocols: Option<Vec<i32>>,
pub rule_action: Option<String>,
pub priority: Option<i32>,
}
Expand description
Describes a stateless rule.
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_group_arn: Option<String>
The ARN of the stateless rule group.
sources: Option<Vec<String>>
The source IP addresses, in CIDR notation.
destinations: Option<Vec<String>>
The destination IP addresses, in CIDR notation.
source_ports: Option<Vec<PortRange>>
The source ports.
destination_ports: Option<Vec<PortRange>>
The destination ports.
protocols: Option<Vec<i32>>
The protocols.
rule_action: Option<String>
The rule action. The possible values are pass
, drop
, and forward_to_site
.
priority: Option<i32>
The rule priority.
Implementations§
source§impl FirewallStatelessRule
impl FirewallStatelessRule
sourcepub fn rule_group_arn(&self) -> Option<&str>
pub fn rule_group_arn(&self) -> Option<&str>
The ARN of the stateless rule group.
sourcepub fn sources(&self) -> &[String]
pub fn sources(&self) -> &[String]
The source IP addresses, in CIDR notation.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .sources.is_none()
.
sourcepub fn destinations(&self) -> &[String]
pub fn destinations(&self) -> &[String]
The destination IP addresses, in CIDR notation.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .destinations.is_none()
.
sourcepub fn source_ports(&self) -> &[PortRange]
pub fn source_ports(&self) -> &[PortRange]
The source ports.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .source_ports.is_none()
.
sourcepub fn destination_ports(&self) -> &[PortRange]
pub fn destination_ports(&self) -> &[PortRange]
The destination ports.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .destination_ports.is_none()
.
sourcepub fn protocols(&self) -> &[i32]
pub fn protocols(&self) -> &[i32]
The protocols.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .protocols.is_none()
.
sourcepub fn rule_action(&self) -> Option<&str>
pub fn rule_action(&self) -> Option<&str>
The rule action. The possible values are pass
, drop
, and forward_to_site
.
source§impl FirewallStatelessRule
impl FirewallStatelessRule
sourcepub fn builder() -> FirewallStatelessRuleBuilder
pub fn builder() -> FirewallStatelessRuleBuilder
Creates a new builder-style object to manufacture FirewallStatelessRule
.
Trait Implementations§
source§impl Clone for FirewallStatelessRule
impl Clone for FirewallStatelessRule
source§fn clone(&self) -> FirewallStatelessRule
fn clone(&self) -> FirewallStatelessRule
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FirewallStatelessRule
impl Debug for FirewallStatelessRule
source§impl PartialEq for FirewallStatelessRule
impl PartialEq for FirewallStatelessRule
source§fn eq(&self, other: &FirewallStatelessRule) -> bool
fn eq(&self, other: &FirewallStatelessRule) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FirewallStatelessRule
Auto Trait Implementations§
impl Freeze for FirewallStatelessRule
impl RefUnwindSafe for FirewallStatelessRule
impl Send for FirewallStatelessRule
impl Sync for FirewallStatelessRule
impl Unpin for FirewallStatelessRule
impl UnwindSafe for FirewallStatelessRule
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