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
impl StructuralPartialEq for TargetAddress
Auto Trait Implementations§
impl Freeze for TargetAddress
impl RefUnwindSafe for TargetAddress
impl Send for TargetAddress
impl Sync for TargetAddress
impl Unpin for TargetAddress
impl UnwindSafe for TargetAddress
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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