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