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
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 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 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 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
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 FirewallStatefulRule
impl Debug for FirewallStatefulRule
source§impl PartialEq<FirewallStatefulRule> for FirewallStatefulRule
impl PartialEq<FirewallStatefulRule> for FirewallStatefulRule
source§fn eq(&self, other: &FirewallStatefulRule) -> bool
fn eq(&self, other: &FirewallStatefulRule) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for FirewallStatefulRule
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more