Skip to main content

instances_health_status

Creates, updates, deletes, gets or lists an instances_health_status resource.

Overview

Nameinstances_health_status
TypeResource
Idaws.servicediscovery.instances_health_status

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
next_tokenstringIf more than MaxResults instances match the specified criteria, you can submit another GetInstancesHealthStatus request to get the next group of results. Specify the value of NextToken from the previous response in the next request.
statusobjectA complex type that contains the IDs and the health status of the instances that you specified in the GetInstancesHealthStatus request.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_instances_health_statusselectregionGets the current health status (Healthy, Unhealthy, or Unknown) of one or more instances that are associated with a specified service. There's a brief delay between when you register an instance and when the health status for the instance is available.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Gets the current health status (Healthy, Unhealthy, or Unknown) of one or more instances that are associated with a specified service. There's a brief delay between when you register an instance and when the health status for the instance is available.

SELECT
next_token,
status
FROM aws.servicediscovery.instances_health_status
WHERE region = '{{ region }}' -- required
;