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>
The start of the port range for the TCP and UDP protocols, or an ICMP type number. A value of -1 indicates all ICMP types.
ip_protocol: Option<String>
The IP protocol name (for tcp
, udp
, and icmp
) 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>
The end of the port range for the TCP and UDP protocols, or an ICMP type number. A value of -1
indicates all ICMP types.
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>
The start of the port range for the TCP and UDP protocols, or an ICMP type number. A value of -1 indicates all ICMP types.
sourcepub fn ip_protocol(&self) -> Option<&str>
pub fn ip_protocol(&self) -> Option<&str>
The IP protocol name (for tcp
, udp
, and icmp
) or number (see Protocol Numbers).
sourcepub fn ip_ranges(&self) -> Option<&[String]>
pub fn ip_ranges(&self) -> Option<&[String]>
The IP ranges. Not applicable for stale security group rules.
sourcepub fn prefix_list_ids(&self) -> Option<&[String]>
pub fn prefix_list_ids(&self) -> Option<&[String]>
The prefix list IDs. Not applicable for stale security group rules.
sourcepub fn to_port(&self) -> Option<i32>
pub fn to_port(&self) -> Option<i32>
The end of the port range for the TCP and UDP protocols, or an ICMP type number. A value of -1
indicates all ICMP types.
sourcepub fn user_id_group_pairs(&self) -> Option<&[UserIdGroupPair]>
pub fn user_id_group_pairs(&self) -> Option<&[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.
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<StaleIpPermission> for StaleIpPermission
impl PartialEq<StaleIpPermission> 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 ==
.