![]() |
![]()
| ![]() |
![]()
NAMEPaws::ServiceDiscovery::DnsRecord USAGEThis class represents one of two things: Arguments in a call to a service Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. Each attribute should be used as a named argument in the calls that expect this type of object. As an example, if Att1 is expected to be a Paws::ServiceDiscovery::DnsRecord object: $service_obj->Method(Att1 => { TTL => $value, ..., Type => $value }); Results returned from an API call Use accessors for each attribute. If Att1 is expected to be an Paws::ServiceDiscovery::DnsRecord object: $result = $service_obj->Method(...); $result->Att1->TTL DESCRIPTIONA complex type that contains information about the Route 53 DNS records that you want Cloud Map to create when you register an instance. ATTRIBUTESREQUIRED TTL => IntThe amount of time, in seconds, that you want DNS resolvers to cache the settings for this record. Alias records don't include a TTL because Route 53 uses the TTL for the Amazon Web Services resource that an alias record routes traffic to. If you include the "AWS_ALIAS_DNS_NAME" attribute when you submit a RegisterInstance (https://docs.aws.amazon.com/cloud-map/latest/api/API_RegisterInstance.html) request, the "TTL" value is ignored. Always specify a TTL for the service; you can use a service to register instances that create either alias or non-alias records. REQUIRED Type => StrThe type of the resource, which indicates the type of value that Route 53 returns in response to DNS queries. You can specify values for "Type" in the following combinations:
If you want Cloud Map to create a Route 53 alias record when you register an instance, specify "A" or "AAAA" for "Type". You specify other settings, such as the IP address for "A" and "AAAA" records, when you register an instance. For more information, see RegisterInstance (https://docs.aws.amazon.com/cloud-map/latest/api/API_RegisterInstance.html). The following values are supported:
For example, if the value of "InstanceId" is "test", the name of the service is "backend", and the name of the namespace is "example.com", the value of "service-hostname" is the following: "test.backend.example.com" If you specify settings for an "SRV" record, note the following:
SEE ALSOThis class forms part of Paws, describing an object used in Paws::ServiceDiscovery BUGS and CONTRIBUTIONSThe source code is located here: <https://github.com/pplu/aws-sdk-perl> Please report bugs to: <https://github.com/pplu/aws-sdk-perl/issues>
|