id property
An identifier that you want to associate with the instance. Note the following:
-
If the service that is specified by
ServiceId
includes settings for anSRV
record, the value ofInstanceId
is automatically included as part of the value for theSRV
record. 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
InstanceId
andServiceId
, 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;