Struct aws_sdk_ec2::types::SubnetConfiguration
source · #[non_exhaustive]pub struct SubnetConfiguration {
pub subnet_id: Option<String>,
pub ipv4: Option<String>,
pub ipv6: Option<String>,
}
Expand description
Describes the configuration of a subnet for a VPC 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.subnet_id: Option<String>
The ID of the subnet.
ipv4: Option<String>
The IPv4 address to assign to the endpoint network interface in the subnet. You must provide an IPv4 address if the VPC endpoint supports IPv4.
If you specify an IPv4 address when modifying a VPC endpoint, we replace the existing endpoint network interface with a new endpoint network interface with this IP address. This process temporarily disconnects the subnet and the VPC endpoint.
ipv6: Option<String>
The IPv6 address to assign to the endpoint network interface in the subnet. You must provide an IPv6 address if the VPC endpoint supports IPv6.
If you specify an IPv6 address when modifying a VPC endpoint, we replace the existing endpoint network interface with a new endpoint network interface with this IP address. This process temporarily disconnects the subnet and the VPC endpoint.
Implementations§
source§impl SubnetConfiguration
impl SubnetConfiguration
sourcepub fn ipv4(&self) -> Option<&str>
pub fn ipv4(&self) -> Option<&str>
The IPv4 address to assign to the endpoint network interface in the subnet. You must provide an IPv4 address if the VPC endpoint supports IPv4.
If you specify an IPv4 address when modifying a VPC endpoint, we replace the existing endpoint network interface with a new endpoint network interface with this IP address. This process temporarily disconnects the subnet and the VPC endpoint.
sourcepub fn ipv6(&self) -> Option<&str>
pub fn ipv6(&self) -> Option<&str>
The IPv6 address to assign to the endpoint network interface in the subnet. You must provide an IPv6 address if the VPC endpoint supports IPv6.
If you specify an IPv6 address when modifying a VPC endpoint, we replace the existing endpoint network interface with a new endpoint network interface with this IP address. This process temporarily disconnects the subnet and the VPC endpoint.
source§impl SubnetConfiguration
impl SubnetConfiguration
sourcepub fn builder() -> SubnetConfigurationBuilder
pub fn builder() -> SubnetConfigurationBuilder
Creates a new builder-style object to manufacture SubnetConfiguration
.
Trait Implementations§
source§impl Clone for SubnetConfiguration
impl Clone for SubnetConfiguration
source§fn clone(&self) -> SubnetConfiguration
fn clone(&self) -> SubnetConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SubnetConfiguration
impl Debug for SubnetConfiguration
source§impl PartialEq for SubnetConfiguration
impl PartialEq for SubnetConfiguration
source§fn eq(&self, other: &SubnetConfiguration) -> bool
fn eq(&self, other: &SubnetConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SubnetConfiguration
Auto Trait Implementations§
impl Freeze for SubnetConfiguration
impl RefUnwindSafe for SubnetConfiguration
impl Send for SubnetConfiguration
impl Sync for SubnetConfiguration
impl Unpin for SubnetConfiguration
impl UnwindSafe for SubnetConfiguration
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