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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
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 destinations(&self) -> Option<&[String]>
pub fn destinations(&self) -> Option<&[String]>
The destination IP addresses, in CIDR notation.
sourcepub fn source_ports(&self) -> Option<&[PortRange]>
pub fn source_ports(&self) -> Option<&[PortRange]>
The source ports.
sourcepub fn destination_ports(&self) -> Option<&[PortRange]>
pub fn destination_ports(&self) -> Option<&[PortRange]>
The destination ports.
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
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FirewallStatelessRule
impl Debug for FirewallStatelessRule
source§impl PartialEq<FirewallStatelessRule> for FirewallStatelessRule
impl PartialEq<FirewallStatelessRule> for FirewallStatelessRule
source§fn eq(&self, other: &FirewallStatelessRule) -> bool
fn eq(&self, other: &FirewallStatelessRule) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FirewallStatelessRule
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more