Struct aws_sdk_ec2::types::TargetNetwork
source · #[non_exhaustive]pub struct TargetNetwork {
pub association_id: Option<String>,
pub vpc_id: Option<String>,
pub target_network_id: Option<String>,
pub client_vpn_endpoint_id: Option<String>,
pub status: Option<AssociationStatus>,
pub security_groups: Option<Vec<String>>,
}
Expand description
Describes a target network associated with a Client VPN endpoint.
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.association_id: Option<String>
The ID of the association.
vpc_id: Option<String>
The ID of the VPC in which the target network (subnet) is located.
target_network_id: Option<String>
The ID of the subnet specified as the target network.
client_vpn_endpoint_id: Option<String>
The ID of the Client VPN endpoint with which the target network is associated.
status: Option<AssociationStatus>
The current state of the target network association.
security_groups: Option<Vec<String>>
The IDs of the security groups applied to the target network association.
Implementations§
source§impl TargetNetwork
impl TargetNetwork
sourcepub fn association_id(&self) -> Option<&str>
pub fn association_id(&self) -> Option<&str>
The ID of the association.
sourcepub fn vpc_id(&self) -> Option<&str>
pub fn vpc_id(&self) -> Option<&str>
The ID of the VPC in which the target network (subnet) is located.
sourcepub fn target_network_id(&self) -> Option<&str>
pub fn target_network_id(&self) -> Option<&str>
The ID of the subnet specified as the target network.
sourcepub fn client_vpn_endpoint_id(&self) -> Option<&str>
pub fn client_vpn_endpoint_id(&self) -> Option<&str>
The ID of the Client VPN endpoint with which the target network is associated.
sourcepub fn status(&self) -> Option<&AssociationStatus>
pub fn status(&self) -> Option<&AssociationStatus>
The current state of the target network association.
sourcepub fn security_groups(&self) -> &[String]
pub fn security_groups(&self) -> &[String]
The IDs of the security groups applied to the target network association.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .security_groups.is_none()
.
source§impl TargetNetwork
impl TargetNetwork
sourcepub fn builder() -> TargetNetworkBuilder
pub fn builder() -> TargetNetworkBuilder
Creates a new builder-style object to manufacture TargetNetwork
.
Trait Implementations§
source§impl Clone for TargetNetwork
impl Clone for TargetNetwork
source§fn clone(&self) -> TargetNetwork
fn clone(&self) -> TargetNetwork
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TargetNetwork
impl Debug for TargetNetwork
source§impl PartialEq for TargetNetwork
impl PartialEq for TargetNetwork
source§fn eq(&self, other: &TargetNetwork) -> bool
fn eq(&self, other: &TargetNetwork) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TargetNetwork
Auto Trait Implementations§
impl Freeze for TargetNetwork
impl RefUnwindSafe for TargetNetwork
impl Send for TargetNetwork
impl Sync for TargetNetwork
impl Unpin for TargetNetwork
impl UnwindSafe for TargetNetwork
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