Struct aws_sdk_route53::client::fluent_builders::TestDNSAnswer
source · [−]pub struct TestDNSAnswer { /* private fields */ }Expand description
Fluent builder constructing a request to TestDNSAnswer.
Gets the value that Amazon Route 53 returns in response to a DNS request for a specified record name and type. You can optionally specify the IP address of a DNS resolver, an EDNS0 client subnet IP address, and a subnet mask.
This call only supports querying public hosted zones.
Implementations
sourceimpl TestDNSAnswer
impl TestDNSAnswer
sourcepub async fn send(
self
) -> Result<TestDnsAnswerOutput, SdkError<TestDNSAnswerError>>
pub async fn send(
self
) -> Result<TestDnsAnswerOutput, SdkError<TestDNSAnswerError>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn hosted_zone_id(self, input: impl Into<String>) -> Self
pub fn hosted_zone_id(self, input: impl Into<String>) -> Self
The ID of the hosted zone that you want Amazon Route 53 to simulate a query for.
sourcepub fn set_hosted_zone_id(self, input: Option<String>) -> Self
pub fn set_hosted_zone_id(self, input: Option<String>) -> Self
The ID of the hosted zone that you want Amazon Route 53 to simulate a query for.
sourcepub fn record_name(self, input: impl Into<String>) -> Self
pub fn record_name(self, input: impl Into<String>) -> Self
The name of the resource record set that you want Amazon Route 53 to simulate a query for.
sourcepub fn set_record_name(self, input: Option<String>) -> Self
pub fn set_record_name(self, input: Option<String>) -> Self
The name of the resource record set that you want Amazon Route 53 to simulate a query for.
sourcepub fn record_type(self, input: RrType) -> Self
pub fn record_type(self, input: RrType) -> Self
The type of the resource record set.
sourcepub fn set_record_type(self, input: Option<RrType>) -> Self
pub fn set_record_type(self, input: Option<RrType>) -> Self
The type of the resource record set.
sourcepub fn resolver_ip(self, input: impl Into<String>) -> Self
pub fn resolver_ip(self, input: impl Into<String>) -> Self
If you want to simulate a request from a specific DNS resolver, specify the IP address for that resolver. If you omit this value, TestDnsAnswer uses the IP address of a DNS resolver in the Amazon Web Services US East (N. Virginia) Region (us-east-1).
sourcepub fn set_resolver_ip(self, input: Option<String>) -> Self
pub fn set_resolver_ip(self, input: Option<String>) -> Self
If you want to simulate a request from a specific DNS resolver, specify the IP address for that resolver. If you omit this value, TestDnsAnswer uses the IP address of a DNS resolver in the Amazon Web Services US East (N. Virginia) Region (us-east-1).
sourcepub fn edns0_client_subnet_ip(self, input: impl Into<String>) -> Self
pub fn edns0_client_subnet_ip(self, input: impl Into<String>) -> Self
If the resolver that you specified for resolverip supports EDNS0, specify the IPv4 or IPv6 address of a client in the applicable location, for example, 192.0.2.44 or 2001:db8:85a3::8a2e:370:7334.
sourcepub fn set_edns0_client_subnet_ip(self, input: Option<String>) -> Self
pub fn set_edns0_client_subnet_ip(self, input: Option<String>) -> Self
If the resolver that you specified for resolverip supports EDNS0, specify the IPv4 or IPv6 address of a client in the applicable location, for example, 192.0.2.44 or 2001:db8:85a3::8a2e:370:7334.
sourcepub fn edns0_client_subnet_mask(self, input: impl Into<String>) -> Self
pub fn edns0_client_subnet_mask(self, input: impl Into<String>) -> Self
If you specify an IP address for edns0clientsubnetip, you can optionally specify the number of bits of the IP address that you want the checking tool to include in the DNS query. For example, if you specify 192.0.2.44 for edns0clientsubnetip and 24 for edns0clientsubnetmask, the checking tool will simulate a request from 192.0.2.0/24. The default value is 24 bits for IPv4 addresses and 64 bits for IPv6 addresses.
The range of valid values depends on whether edns0clientsubnetip is an IPv4 or an IPv6 address:
-
IPv4: Specify a value between 0 and 32
-
IPv6: Specify a value between 0 and 128
sourcepub fn set_edns0_client_subnet_mask(self, input: Option<String>) -> Self
pub fn set_edns0_client_subnet_mask(self, input: Option<String>) -> Self
If you specify an IP address for edns0clientsubnetip, you can optionally specify the number of bits of the IP address that you want the checking tool to include in the DNS query. For example, if you specify 192.0.2.44 for edns0clientsubnetip and 24 for edns0clientsubnetmask, the checking tool will simulate a request from 192.0.2.0/24. The default value is 24 bits for IPv4 addresses and 64 bits for IPv6 addresses.
The range of valid values depends on whether edns0clientsubnetip is an IPv4 or an IPv6 address:
-
IPv4: Specify a value between 0 and 32
-
IPv6: Specify a value between 0 and 128
Trait Implementations
sourceimpl Clone for TestDNSAnswer
impl Clone for TestDNSAnswer
sourcefn clone(&self) -> TestDNSAnswer
fn clone(&self) -> TestDNSAnswer
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl !RefUnwindSafe for TestDNSAnswer
impl Send for TestDNSAnswer
impl Sync for TestDNSAnswer
impl Unpin for TestDNSAnswer
impl !UnwindSafe for TestDNSAnswer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more