id property
An identifier that you want to associate with the instance. Note the following:
-
If the service that is specified by
ServiceIdincludes settings for anSRVrecord, the value ofInstanceIdis automatically included as part of the value for theSRVrecord. For more information, see DnsRecord > Type. - You can use this value to update an existing instance.
- To register a new instance, you must specify a value that is unique among instances that you register by using the same service.
-
If you specify an existing
InstanceIdandServiceId, AWS Cloud Map updates the existing DNS records. If there's also an existing health check, AWS Cloud Map deletes the old health check and creates a new one.
Implementation
final String id;