#[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 ==
.