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>
This parameter is in preview and may not be available for your account.
The ID of the transit gateway (if applicable).
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>
This parameter is in preview and may not be available for your account.
The ID of the transit gateway (if applicable).
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 ==
.impl StructuralPartialEq for SecurityGroupReference
Auto Trait Implementations§
impl Freeze for SecurityGroupReference
impl RefUnwindSafe for SecurityGroupReference
impl Send for SecurityGroupReference
impl Sync for SecurityGroupReference
impl Unpin for SecurityGroupReference
impl UnwindSafe for SecurityGroupReference
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