AWS SDK for C++  1.9.124
AWS SDK for C++
Public Member Functions | List of all members
Aws::ServiceDiscovery::Model::DnsConfig Class Reference

#include <DnsConfig.h>

Public Member Functions

 DnsConfig ()
 
 DnsConfig (Aws::Utils::Json::JsonView jsonValue)
 
DnsConfigoperator= (Aws::Utils::Json::JsonView jsonValue)
 
Aws::Utils::Json::JsonValue Jsonize () const
 
const RoutingPolicyGetRoutingPolicy () const
 
bool RoutingPolicyHasBeenSet () const
 
void SetRoutingPolicy (const RoutingPolicy &value)
 
void SetRoutingPolicy (RoutingPolicy &&value)
 
DnsConfigWithRoutingPolicy (const RoutingPolicy &value)
 
DnsConfigWithRoutingPolicy (RoutingPolicy &&value)
 
const Aws::Vector< DnsRecord > & GetDnsRecords () const
 
bool DnsRecordsHasBeenSet () const
 
void SetDnsRecords (const Aws::Vector< DnsRecord > &value)
 
void SetDnsRecords (Aws::Vector< DnsRecord > &&value)
 
DnsConfigWithDnsRecords (const Aws::Vector< DnsRecord > &value)
 
DnsConfigWithDnsRecords (Aws::Vector< DnsRecord > &&value)
 
DnsConfigAddDnsRecords (const DnsRecord &value)
 
DnsConfigAddDnsRecords (DnsRecord &&value)
 

Detailed Description

A complex type that contains information about the Amazon Route 53 DNS records that you want Cloud Map to create when you register an instance.

See Also:

AWS API Reference

Definition at line 35 of file DnsConfig.h.

Constructor & Destructor Documentation

◆ DnsConfig() [1/2]

Aws::ServiceDiscovery::Model::DnsConfig::DnsConfig ( )

◆ DnsConfig() [2/2]

Aws::ServiceDiscovery::Model::DnsConfig::DnsConfig ( Aws::Utils::Json::JsonView  jsonValue)

Member Function Documentation

◆ AddDnsRecords() [1/2]

DnsConfig& Aws::ServiceDiscovery::Model::DnsConfig::AddDnsRecords ( const DnsRecord value)
inline

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.

Definition at line 295 of file DnsConfig.h.

◆ AddDnsRecords() [2/2]

DnsConfig& Aws::ServiceDiscovery::Model::DnsConfig::AddDnsRecords ( DnsRecord &&  value)
inline

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.

Definition at line 301 of file DnsConfig.h.

◆ DnsRecordsHasBeenSet()

bool Aws::ServiceDiscovery::Model::DnsConfig::DnsRecordsHasBeenSet ( ) const
inline

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.

Definition at line 265 of file DnsConfig.h.

◆ GetDnsRecords()

const Aws::Vector<DnsRecord>& Aws::ServiceDiscovery::Model::DnsConfig::GetDnsRecords ( ) const
inline

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.

Definition at line 259 of file DnsConfig.h.

◆ GetRoutingPolicy()

const RoutingPolicy& Aws::ServiceDiscovery::Model::DnsConfig::GetRoutingPolicy ( ) const
inline

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 A record 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 A record 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.

Definition at line 77 of file DnsConfig.h.

◆ Jsonize()

Aws::Utils::Json::JsonValue Aws::ServiceDiscovery::Model::DnsConfig::Jsonize ( ) const

◆ operator=()

DnsConfig& Aws::ServiceDiscovery::Model::DnsConfig::operator= ( Aws::Utils::Json::JsonView  jsonValue)

◆ RoutingPolicyHasBeenSet()

bool Aws::ServiceDiscovery::Model::DnsConfig::RoutingPolicyHasBeenSet ( ) const
inline

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 A record 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 A record 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.

Definition at line 112 of file DnsConfig.h.

◆ SetDnsRecords() [1/2]

void Aws::ServiceDiscovery::Model::DnsConfig::SetDnsRecords ( Aws::Vector< DnsRecord > &&  value)
inline

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.

Definition at line 277 of file DnsConfig.h.

◆ SetDnsRecords() [2/2]

void Aws::ServiceDiscovery::Model::DnsConfig::SetDnsRecords ( const Aws::Vector< DnsRecord > &  value)
inline

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.

Definition at line 271 of file DnsConfig.h.

◆ SetRoutingPolicy() [1/2]

void Aws::ServiceDiscovery::Model::DnsConfig::SetRoutingPolicy ( const RoutingPolicy value)
inline

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 A record 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 A record 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.

Definition at line 147 of file DnsConfig.h.

◆ SetRoutingPolicy() [2/2]

void Aws::ServiceDiscovery::Model::DnsConfig::SetRoutingPolicy ( RoutingPolicy &&  value)
inline

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 A record 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 A record 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.

Definition at line 182 of file DnsConfig.h.

◆ WithDnsRecords() [1/2]

DnsConfig& Aws::ServiceDiscovery::Model::DnsConfig::WithDnsRecords ( Aws::Vector< DnsRecord > &&  value)
inline

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.

Definition at line 289 of file DnsConfig.h.

◆ WithDnsRecords() [2/2]

DnsConfig& Aws::ServiceDiscovery::Model::DnsConfig::WithDnsRecords ( const Aws::Vector< DnsRecord > &  value)
inline

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.

Definition at line 283 of file DnsConfig.h.

◆ WithRoutingPolicy() [1/2]

DnsConfig& Aws::ServiceDiscovery::Model::DnsConfig::WithRoutingPolicy ( const RoutingPolicy value)
inline

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 A record 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 A record 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.

Definition at line 217 of file DnsConfig.h.

◆ WithRoutingPolicy() [2/2]

DnsConfig& Aws::ServiceDiscovery::Model::DnsConfig::WithRoutingPolicy ( RoutingPolicy &&  value)
inline

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 A record 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 A record 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.

Definition at line 252 of file DnsConfig.h.


The documentation for this class was generated from the following file: