Struct aws_sdk_servicediscovery::types::builders::DnsConfigBuilder
source · #[non_exhaustive]pub struct DnsConfigBuilder { /* private fields */ }Expand description
A builder for DnsConfig.
Implementations§
source§impl DnsConfigBuilder
impl DnsConfigBuilder
sourcepub fn namespace_id(self, input: impl Into<String>) -> Self
👎Deprecated: Top level attribute in request should be used to reference namespace-id
pub fn namespace_id(self, input: impl Into<String>) -> Self
Use NamespaceId in Service instead.
The ID of the namespace to use for DNS configuration.
sourcepub fn set_namespace_id(self, input: Option<String>) -> Self
👎Deprecated: Top level attribute in request should be used to reference namespace-id
pub fn set_namespace_id(self, input: Option<String>) -> Self
Use NamespaceId in Service instead.
The ID of the namespace to use for DNS configuration.
sourcepub fn get_namespace_id(&self) -> &Option<String>
👎Deprecated: Top level attribute in request should be used to reference namespace-id
pub fn get_namespace_id(&self) -> &Option<String>
Use NamespaceId in Service instead.
The ID of the namespace to use for DNS configuration.
sourcepub fn routing_policy(self, input: RoutingPolicy) -> Self
pub fn routing_policy(self, input: RoutingPolicy) -> Self
The routing policy that you want to apply to all Route 53 DNS records that Cloud Map creates when you register an instance and specify this service.
If you want to use this service to register instances that create alias records, specify WEIGHTED for the routing policy.
You can specify the following values:
- MULTIVALUE
-
If you define a health check for the service and the health check is healthy, Route 53 returns the applicable value for up to eight instances.
For example, suppose that the service includes configurations for one
Arecord and a health check. You use the service to register 10 instances. Route 53 responds to DNS queries with IP addresses for up to eight healthy instances. If fewer than eight instances are healthy, Route 53 responds to every DNS query with the IP addresses for all of the healthy instances.If you don't define a health check for the service, Route 53 assumes that all instances are healthy and returns the values for up to eight instances.
For more information about the multivalue routing policy, see Multivalue Answer Routing in the Route 53 Developer Guide.
- WEIGHTED
-
Route 53 returns the applicable value from one randomly selected instance from among the instances that you registered using the same service. Currently, all records have the same weight, so you can't route more or less traffic to any instances.
For example, suppose that the service includes configurations for one
Arecord and a health check. You use the service to register 10 instances. Route 53 responds to DNS queries with the IP address for one randomly selected instance from among the healthy instances. If no instances are healthy, Route 53 responds to DNS queries as if all of the instances were healthy.If you don't define a health check for the service, Route 53 assumes that all instances are healthy and returns the applicable value for one randomly selected instance.
For more information about the weighted routing policy, see Weighted Routing in the Route 53 Developer Guide.
sourcepub fn set_routing_policy(self, input: Option<RoutingPolicy>) -> Self
pub fn set_routing_policy(self, input: Option<RoutingPolicy>) -> Self
The routing policy that you want to apply to all Route 53 DNS records that Cloud Map creates when you register an instance and specify this service.
If you want to use this service to register instances that create alias records, specify WEIGHTED for the routing policy.
You can specify the following values:
- MULTIVALUE
-
If you define a health check for the service and the health check is healthy, Route 53 returns the applicable value for up to eight instances.
For example, suppose that the service includes configurations for one
Arecord and a health check. You use the service to register 10 instances. Route 53 responds to DNS queries with IP addresses for up to eight healthy instances. If fewer than eight instances are healthy, Route 53 responds to every DNS query with the IP addresses for all of the healthy instances.If you don't define a health check for the service, Route 53 assumes that all instances are healthy and returns the values for up to eight instances.
For more information about the multivalue routing policy, see Multivalue Answer Routing in the Route 53 Developer Guide.
- WEIGHTED
-
Route 53 returns the applicable value from one randomly selected instance from among the instances that you registered using the same service. Currently, all records have the same weight, so you can't route more or less traffic to any instances.
For example, suppose that the service includes configurations for one
Arecord and a health check. You use the service to register 10 instances. Route 53 responds to DNS queries with the IP address for one randomly selected instance from among the healthy instances. If no instances are healthy, Route 53 responds to DNS queries as if all of the instances were healthy.If you don't define a health check for the service, Route 53 assumes that all instances are healthy and returns the applicable value for one randomly selected instance.
For more information about the weighted routing policy, see Weighted Routing in the Route 53 Developer Guide.
sourcepub fn get_routing_policy(&self) -> &Option<RoutingPolicy>
pub fn get_routing_policy(&self) -> &Option<RoutingPolicy>
The routing policy that you want to apply to all Route 53 DNS records that Cloud Map creates when you register an instance and specify this service.
If you want to use this service to register instances that create alias records, specify WEIGHTED for the routing policy.
You can specify the following values:
- MULTIVALUE
-
If you define a health check for the service and the health check is healthy, Route 53 returns the applicable value for up to eight instances.
For example, suppose that the service includes configurations for one
Arecord and a health check. You use the service to register 10 instances. Route 53 responds to DNS queries with IP addresses for up to eight healthy instances. If fewer than eight instances are healthy, Route 53 responds to every DNS query with the IP addresses for all of the healthy instances.If you don't define a health check for the service, Route 53 assumes that all instances are healthy and returns the values for up to eight instances.
For more information about the multivalue routing policy, see Multivalue Answer Routing in the Route 53 Developer Guide.
- WEIGHTED
-
Route 53 returns the applicable value from one randomly selected instance from among the instances that you registered using the same service. Currently, all records have the same weight, so you can't route more or less traffic to any instances.
For example, suppose that the service includes configurations for one
Arecord and a health check. You use the service to register 10 instances. Route 53 responds to DNS queries with the IP address for one randomly selected instance from among the healthy instances. If no instances are healthy, Route 53 responds to DNS queries as if all of the instances were healthy.If you don't define a health check for the service, Route 53 assumes that all instances are healthy and returns the applicable value for one randomly selected instance.
For more information about the weighted routing policy, see Weighted Routing in the Route 53 Developer Guide.
sourcepub fn dns_records(self, input: DnsRecord) -> Self
pub fn dns_records(self, input: DnsRecord) -> Self
Appends an item to dns_records.
To override the contents of this collection use set_dns_records.
An array that contains one DnsRecord object for each Route 53 DNS record that you want Cloud Map to create when you register an instance.
sourcepub fn set_dns_records(self, input: Option<Vec<DnsRecord>>) -> Self
pub fn set_dns_records(self, input: Option<Vec<DnsRecord>>) -> Self
An array that contains one DnsRecord object for each Route 53 DNS record that you want Cloud Map to create when you register an instance.
sourcepub fn get_dns_records(&self) -> &Option<Vec<DnsRecord>>
pub fn get_dns_records(&self) -> &Option<Vec<DnsRecord>>
An array that contains one DnsRecord object for each Route 53 DNS record that you want Cloud Map to create when you register an instance.
Trait Implementations§
source§impl Clone for DnsConfigBuilder
impl Clone for DnsConfigBuilder
source§fn clone(&self) -> DnsConfigBuilder
fn clone(&self) -> DnsConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DnsConfigBuilder
impl Debug for DnsConfigBuilder
source§impl Default for DnsConfigBuilder
impl Default for DnsConfigBuilder
source§fn default() -> DnsConfigBuilder
fn default() -> DnsConfigBuilder
source§impl PartialEq for DnsConfigBuilder
impl PartialEq for DnsConfigBuilder
impl StructuralPartialEq for DnsConfigBuilder
Auto Trait Implementations§
impl Freeze for DnsConfigBuilder
impl RefUnwindSafe for DnsConfigBuilder
impl Send for DnsConfigBuilder
impl Sync for DnsConfigBuilder
impl Unpin for DnsConfigBuilder
impl UnwindSafe for DnsConfigBuilder
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