Struct aws_sdk_route53resolver::types::TargetAddress
source · #[non_exhaustive]pub struct TargetAddress {
pub ip: Option<String>,
pub port: Option<i32>,
pub ipv6: Option<String>,
pub protocol: Option<Protocol>,
}
Expand description
In a CreateResolverRule request, an array of the IPs that you want to forward DNS queries to.
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.ip: Option<String>
One IPv4 address that you want to forward DNS queries to.
port: Option<i32>
The port at Ip
that you want to forward DNS queries to.
ipv6: Option<String>
One IPv6 address that you want to forward DNS queries to.
protocol: Option<Protocol>
The protocols for the Resolver endpoints. DoH-FIPS is applicable for inbound endpoints only.
For an inbound endpoint you can apply the protocols as follows:
-
Do53 and DoH in combination.
-
Do53 and DoH-FIPS in combination.
-
Do53 alone.
-
DoH alone.
-
DoH-FIPS alone.
-
None, which is treated as Do53.
For an outbound endpoint you can apply the protocols as follows:
-
Do53 and DoH in combination.
-
Do53 alone.
-
DoH alone.
-
None, which is treated as Do53.
Implementations§
source§impl TargetAddress
impl TargetAddress
sourcepub fn protocol(&self) -> Option<&Protocol>
pub fn protocol(&self) -> Option<&Protocol>
The protocols for the Resolver endpoints. DoH-FIPS is applicable for inbound endpoints only.
For an inbound endpoint you can apply the protocols as follows:
-
Do53 and DoH in combination.
-
Do53 and DoH-FIPS in combination.
-
Do53 alone.
-
DoH alone.
-
DoH-FIPS alone.
-
None, which is treated as Do53.
For an outbound endpoint you can apply the protocols as follows:
-
Do53 and DoH in combination.
-
Do53 alone.
-
DoH alone.
-
None, which is treated as Do53.
source§impl TargetAddress
impl TargetAddress
sourcepub fn builder() -> TargetAddressBuilder
pub fn builder() -> TargetAddressBuilder
Creates a new builder-style object to manufacture TargetAddress
.
Trait Implementations§
source§impl Clone for TargetAddress
impl Clone for TargetAddress
source§fn clone(&self) -> TargetAddress
fn clone(&self) -> TargetAddress
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TargetAddress
impl Debug for TargetAddress
source§impl PartialEq for TargetAddress
impl PartialEq for TargetAddress
source§fn eq(&self, other: &TargetAddress) -> bool
fn eq(&self, other: &TargetAddress) -> bool
self
and other
values to be equal, and is used
by ==
.