Struct aws_sdk_ec2::types::SecurityGroupReference
source · #[non_exhaustive]pub struct SecurityGroupReference {
pub group_id: Option<String>,
pub referencing_vpc_id: Option<String>,
pub vpc_peering_connection_id: Option<String>,
pub transit_gateway_id: Option<String>,
}
Expand description
Describes a VPC with a security group that references your 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_id: Option<String>
The ID of your security group.
referencing_vpc_id: Option<String>
The ID of the VPC with the referencing security group.
vpc_peering_connection_id: Option<String>
The ID of the VPC peering connection (if applicable). For more information about security group referencing for peering connections, see Update your security groups to reference peer security groups in the VPC Peering Guide.
transit_gateway_id: Option<String>
The ID of the transit gateway (if applicable). For more information about security group referencing for transit gateways, see Create a transit gateway attachment to a VPC in the Amazon Web Services Transit Gateway Guide.
Implementations§
source§impl SecurityGroupReference
impl SecurityGroupReference
sourcepub fn referencing_vpc_id(&self) -> Option<&str>
pub fn referencing_vpc_id(&self) -> Option<&str>
The ID of the VPC with the referencing security group.
sourcepub fn vpc_peering_connection_id(&self) -> Option<&str>
pub fn vpc_peering_connection_id(&self) -> Option<&str>
The ID of the VPC peering connection (if applicable). For more information about security group referencing for peering connections, see Update your security groups to reference peer security groups in the VPC Peering Guide.
sourcepub fn transit_gateway_id(&self) -> Option<&str>
pub fn transit_gateway_id(&self) -> Option<&str>
The ID of the transit gateway (if applicable). For more information about security group referencing for transit gateways, see Create a transit gateway attachment to a VPC in the Amazon Web Services Transit Gateway Guide.
source§impl SecurityGroupReference
impl SecurityGroupReference
sourcepub fn builder() -> SecurityGroupReferenceBuilder
pub fn builder() -> SecurityGroupReferenceBuilder
Creates a new builder-style object to manufacture SecurityGroupReference
.
Trait Implementations§
source§impl Clone for SecurityGroupReference
impl Clone for SecurityGroupReference
source§fn clone(&self) -> SecurityGroupReference
fn clone(&self) -> SecurityGroupReference
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SecurityGroupReference
impl Debug for SecurityGroupReference
source§impl PartialEq for SecurityGroupReference
impl PartialEq for SecurityGroupReference
source§fn eq(&self, other: &SecurityGroupReference) -> bool
fn eq(&self, other: &SecurityGroupReference) -> bool
self
and other
values to be equal, and is used
by ==
.