Struct aws_sdk_ec2::types::StaleIpPermission
source · #[non_exhaustive]pub struct StaleIpPermission {
pub from_port: Option<i32>,
pub ip_protocol: Option<String>,
pub ip_ranges: Option<Vec<String>>,
pub prefix_list_ids: Option<Vec<String>>,
pub to_port: Option<i32>,
pub user_id_group_pairs: Option<Vec<UserIdGroupPair>>,
}Expand description
Describes a stale rule in a security group.
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.from_port: Option<i32>If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP or ICMPv6, this is the ICMP type or -1 (all ICMP types).
ip_protocol: Option<String>The IP protocol name (tcp, udp, icmp, icmpv6) or number (see Protocol Numbers).
ip_ranges: Option<Vec<String>>The IP ranges. Not applicable for stale security group rules.
prefix_list_ids: Option<Vec<String>>The prefix list IDs. Not applicable for stale security group rules.
to_port: Option<i32>If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP or ICMPv6, this is the ICMP code or -1 (all ICMP codes).
user_id_group_pairs: Option<Vec<UserIdGroupPair>>The security group pairs. Returns the ID of the referenced security group and VPC, and the ID and status of the VPC peering connection.
Implementations§
source§impl StaleIpPermission
impl StaleIpPermission
sourcepub fn from_port(&self) -> Option<i32>
pub fn from_port(&self) -> Option<i32>
If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP or ICMPv6, this is the ICMP type or -1 (all ICMP types).
sourcepub fn ip_protocol(&self) -> Option<&str>
pub fn ip_protocol(&self) -> Option<&str>
The IP protocol name (tcp, udp, icmp, icmpv6) or number (see Protocol Numbers).
sourcepub fn ip_ranges(&self) -> &[String]
pub fn ip_ranges(&self) -> &[String]
The IP ranges. Not applicable for stale security group rules.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .ip_ranges.is_none().
sourcepub fn prefix_list_ids(&self) -> &[String]
pub fn prefix_list_ids(&self) -> &[String]
The prefix list IDs. Not applicable for stale security group rules.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .prefix_list_ids.is_none().
sourcepub fn to_port(&self) -> Option<i32>
pub fn to_port(&self) -> Option<i32>
If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP or ICMPv6, this is the ICMP code or -1 (all ICMP codes).
sourcepub fn user_id_group_pairs(&self) -> &[UserIdGroupPair]
pub fn user_id_group_pairs(&self) -> &[UserIdGroupPair]
The security group pairs. Returns the ID of the referenced security group and VPC, and the ID and status of the VPC peering connection.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .user_id_group_pairs.is_none().
source§impl StaleIpPermission
impl StaleIpPermission
sourcepub fn builder() -> StaleIpPermissionBuilder
pub fn builder() -> StaleIpPermissionBuilder
Creates a new builder-style object to manufacture StaleIpPermission.
Trait Implementations§
source§impl Clone for StaleIpPermission
impl Clone for StaleIpPermission
source§fn clone(&self) -> StaleIpPermission
fn clone(&self) -> StaleIpPermission
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for StaleIpPermission
impl Debug for StaleIpPermission
source§impl PartialEq for StaleIpPermission
impl PartialEq for StaleIpPermission
source§fn eq(&self, other: &StaleIpPermission) -> bool
fn eq(&self, other: &StaleIpPermission) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for StaleIpPermission
Auto Trait Implementations§
impl Freeze for StaleIpPermission
impl RefUnwindSafe for StaleIpPermission
impl Send for StaleIpPermission
impl Sync for StaleIpPermission
impl Unpin for StaleIpPermission
impl UnwindSafe for StaleIpPermission
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