#[non_exhaustive]pub struct AwsEc2SecurityGroupDetails {
pub group_name: Option<String>,
pub group_id: Option<String>,
pub owner_id: Option<String>,
pub vpc_id: Option<String>,
pub ip_permissions: Option<Vec<AwsEc2SecurityGroupIpPermission>>,
pub ip_permissions_egress: Option<Vec<AwsEc2SecurityGroupIpPermission>>,
}
Expand description
Details about an Amazon EC2 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.group_name: Option<String>
The name of the security group.
group_id: Option<String>
The ID of the security group.
owner_id: Option<String>
The Amazon Web Services account ID of the owner of the security group.
vpc_id: Option<String>
[VPC only] The ID of the VPC for the security group.
ip_permissions: Option<Vec<AwsEc2SecurityGroupIpPermission>>
The inbound rules associated with the security group.
ip_permissions_egress: Option<Vec<AwsEc2SecurityGroupIpPermission>>
[VPC only] The outbound rules associated with the security group.
Implementations§
source§impl AwsEc2SecurityGroupDetails
impl AwsEc2SecurityGroupDetails
sourcepub fn group_name(&self) -> Option<&str>
pub fn group_name(&self) -> Option<&str>
The name of the security group.
sourcepub fn owner_id(&self) -> Option<&str>
pub fn owner_id(&self) -> Option<&str>
The Amazon Web Services account ID of the owner of the security group.
sourcepub fn ip_permissions(&self) -> &[AwsEc2SecurityGroupIpPermission]
pub fn ip_permissions(&self) -> &[AwsEc2SecurityGroupIpPermission]
The inbound rules associated with the security group.
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_permissions.is_none()
.
sourcepub fn ip_permissions_egress(&self) -> &[AwsEc2SecurityGroupIpPermission]
pub fn ip_permissions_egress(&self) -> &[AwsEc2SecurityGroupIpPermission]
[VPC only] The outbound rules associated with the security group.
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_permissions_egress.is_none()
.
source§impl AwsEc2SecurityGroupDetails
impl AwsEc2SecurityGroupDetails
sourcepub fn builder() -> AwsEc2SecurityGroupDetailsBuilder
pub fn builder() -> AwsEc2SecurityGroupDetailsBuilder
Creates a new builder-style object to manufacture AwsEc2SecurityGroupDetails
.
Trait Implementations§
source§impl Clone for AwsEc2SecurityGroupDetails
impl Clone for AwsEc2SecurityGroupDetails
source§fn clone(&self) -> AwsEc2SecurityGroupDetails
fn clone(&self) -> AwsEc2SecurityGroupDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AwsEc2SecurityGroupDetails
impl Debug for AwsEc2SecurityGroupDetails
source§impl PartialEq for AwsEc2SecurityGroupDetails
impl PartialEq for AwsEc2SecurityGroupDetails
source§fn eq(&self, other: &AwsEc2SecurityGroupDetails) -> bool
fn eq(&self, other: &AwsEc2SecurityGroupDetails) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AwsEc2SecurityGroupDetails
Auto Trait Implementations§
impl Freeze for AwsEc2SecurityGroupDetails
impl RefUnwindSafe for AwsEc2SecurityGroupDetails
impl Send for AwsEc2SecurityGroupDetails
impl Sync for AwsEc2SecurityGroupDetails
impl Unpin for AwsEc2SecurityGroupDetails
impl UnwindSafe for AwsEc2SecurityGroupDetails
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