aws.servicediscovery.get_instances_health_status
Example SQL Queries
SELECT * FROMaws.servicediscovery.get_instances_health_statusWHERE"service_id" = 'VALUE';Description
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.
Table Definition
| Column Name | Column Data Type |
|---|---|
| service_id Required Input Column The ID of the service that the instance is associated with. | VARCHAR |
| instances Input Column An array that contains the IDs of all the instances that you want to get the health status for. If you omit Instances, Cloud Map returns the health status for all the instances that are associated with the specified service. To get the IDs for the instances that you've registered by using a specified service, submit a ListInstances request. | VARCHAR[] |
Show child fields
| |
| max_results Input Column The maximum number of instances that you want Cloud Map to return in the response to a GetInstancesHealthStatus request. If you don't specify a value for MaxResults, Cloud Map returns up to 100 instances. | BIGINT |
| next_token Input Column If 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. | VARCHAR |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| _aws_region Input Column The AWS region to use. | VARCHAR |
| status A complex type that contains the IDs and the health status of the instances that you specified in the GetInstancesHealthStatus request. | MAP(VARCHAR, VARCHAR) |