Struct aws_sdk_ec2::types::AnalysisSecurityGroupRule
source · #[non_exhaustive]pub struct AnalysisSecurityGroupRule {
pub cidr: Option<String>,
pub direction: Option<String>,
pub security_group_id: Option<String>,
pub port_range: Option<PortRange>,
pub prefix_list_id: Option<String>,
pub protocol: Option<String>,
}
Expand description
Describes a security group 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.cidr: Option<String>
The IPv4 address range, in CIDR notation.
direction: Option<String>
The direction. The following are the possible values:
-
egress
-
ingress
security_group_id: Option<String>
The security group ID.
port_range: Option<PortRange>
The port range.
prefix_list_id: Option<String>
The prefix list ID.
protocol: Option<String>
The protocol name.
Implementations§
source§impl AnalysisSecurityGroupRule
impl AnalysisSecurityGroupRule
sourcepub fn direction(&self) -> Option<&str>
pub fn direction(&self) -> Option<&str>
The direction. The following are the possible values:
-
egress
-
ingress
sourcepub fn security_group_id(&self) -> Option<&str>
pub fn security_group_id(&self) -> Option<&str>
The security group ID.
sourcepub fn port_range(&self) -> Option<&PortRange>
pub fn port_range(&self) -> Option<&PortRange>
The port range.
sourcepub fn prefix_list_id(&self) -> Option<&str>
pub fn prefix_list_id(&self) -> Option<&str>
The prefix list ID.
source§impl AnalysisSecurityGroupRule
impl AnalysisSecurityGroupRule
sourcepub fn builder() -> AnalysisSecurityGroupRuleBuilder
pub fn builder() -> AnalysisSecurityGroupRuleBuilder
Creates a new builder-style object to manufacture AnalysisSecurityGroupRule
.
Trait Implementations§
source§impl Clone for AnalysisSecurityGroupRule
impl Clone for AnalysisSecurityGroupRule
source§fn clone(&self) -> AnalysisSecurityGroupRule
fn clone(&self) -> AnalysisSecurityGroupRule
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 AnalysisSecurityGroupRule
impl Debug for AnalysisSecurityGroupRule
source§impl PartialEq<AnalysisSecurityGroupRule> for AnalysisSecurityGroupRule
impl PartialEq<AnalysisSecurityGroupRule> for AnalysisSecurityGroupRule
source§fn eq(&self, other: &AnalysisSecurityGroupRule) -> bool
fn eq(&self, other: &AnalysisSecurityGroupRule) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AnalysisSecurityGroupRule
Auto Trait Implementations§
impl RefUnwindSafe for AnalysisSecurityGroupRule
impl Send for AnalysisSecurityGroupRule
impl Sync for AnalysisSecurityGroupRule
impl Unpin for AnalysisSecurityGroupRule
impl UnwindSafe for AnalysisSecurityGroupRule
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