Submits a request to change the health status of a custom health check to healthy or unhealthy.
servicediscovery_update_instance_custom_health_status(ServiceId,
InstanceId, Status)
[required] The ID of the service that includes the configuration for the custom health check that you want to change the status for.
[required] The ID of the instance that you want to change the health status for.
[required] The new status of the instance, HEALTHY
or UNHEALTHY
.
svc$update_instance_custom_health_status( ServiceId = "string", InstanceId = "string", Status = "HEALTHY"|"UNHEALTHY" )
You can use UpdateInstanceCustomHealthStatus
to change the status only
for custom health checks, which you define using
HealthCheckCustomConfig
when you create a service. You can\'t use it
to change the status for Route 53 health checks, which you define using
HealthCheckConfig
.
For more information, see HealthCheckCustomConfig.