Struct aws_sdk_ec2::model::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
sourceimpl 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.
sourceimpl StaleIpPermission
impl StaleIpPermission
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture StaleIpPermission
Trait Implementations
sourceimpl Clone for StaleIpPermission
impl Clone for StaleIpPermission
sourcefn clone(&self) -> StaleIpPermission
fn clone(&self) -> StaleIpPermission
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for StaleIpPermission
impl Debug for StaleIpPermission
sourceimpl PartialEq<StaleIpPermission> for StaleIpPermission
impl PartialEq<StaleIpPermission> for StaleIpPermission
sourcefn eq(&self, other: &StaleIpPermission) -> bool
fn eq(&self, other: &StaleIpPermission) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &StaleIpPermission) -> bool
fn ne(&self, other: &StaleIpPermission) -> bool
This method tests for !=.
impl StructuralPartialEq for StaleIpPermission
Auto Trait Implementations
impl RefUnwindSafe for StaleIpPermission
impl Send for StaleIpPermission
impl Sync for StaleIpPermission
impl Unpin for StaleIpPermission
impl UnwindSafe for StaleIpPermission
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more