Struct aws_sdk_ec2::types::FirewallStatefulRule
source · #[non_exhaustive]pub struct FirewallStatefulRule {
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 protocol: Option<String>,
pub rule_action: Option<String>,
pub direction: Option<String>,
}
Expand description
Describes a stateful 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 stateful 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.
protocol: Option<String>
The protocol.
rule_action: Option<String>
The rule action. The possible values are pass
, drop
, and alert
.
direction: Option<String>
The direction. The possible values are FORWARD
and ANY
.
Implementations§
source§impl FirewallStatefulRule
impl FirewallStatefulRule
sourcepub fn rule_group_arn(&self) -> Option<&str>
pub fn rule_group_arn(&self) -> Option<&str>
The ARN of the stateful 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 rule_action(&self) -> Option<&str>
pub fn rule_action(&self) -> Option<&str>
The rule action. The possible values are pass
, drop
, and alert
.
source§impl FirewallStatefulRule
impl FirewallStatefulRule
sourcepub fn builder() -> FirewallStatefulRuleBuilder
pub fn builder() -> FirewallStatefulRuleBuilder
Creates a new builder-style object to manufacture FirewallStatefulRule
.
Trait Implementations§
source§impl Clone for FirewallStatefulRule
impl Clone for FirewallStatefulRule
source§fn clone(&self) -> FirewallStatefulRule
fn clone(&self) -> FirewallStatefulRule
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FirewallStatefulRule
impl Debug for FirewallStatefulRule
source§impl PartialEq for FirewallStatefulRule
impl PartialEq for FirewallStatefulRule
source§fn eq(&self, other: &FirewallStatefulRule) -> bool
fn eq(&self, other: &FirewallStatefulRule) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FirewallStatefulRule
Auto Trait Implementations§
impl Freeze for FirewallStatefulRule
impl RefUnwindSafe for FirewallStatefulRule
impl Send for FirewallStatefulRule
impl Sync for FirewallStatefulRule
impl Unpin for FirewallStatefulRule
impl UnwindSafe for FirewallStatefulRule
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