health_check_last_failure_reasons
Creates, updates, deletes, gets or lists a health_check_last_failure_reasons resource.
Overview
| Name | health_check_last_failure_reasons |
| Type | Resource |
| Id | aws.route53.health_check_last_failure_reasons |
Fields
The following fields are returned by SELECT queries:
- get_health_check_last_failure_reason
| Name | Datatype | Description |
|---|---|---|
health_check_observations | string | A list that contains one Observation element for each Amazon Route 53 health checker that is reporting a last failure reason. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_health_check_last_failure_reason | select | health_check_id, region | Gets the reason that a specified health check failed most recently. |
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.
| Name | Datatype | Description |
|---|---|---|
health_check_id | string | The ID for the health check for which you want the last failure reason. When you created the health check, CreateHealthCheck returned the ID in the response, in the HealthCheckId element. If you want to get the last failure reason for a calculated health check, you must use the Amazon Route 53 console or the CloudWatch console. You can't use GetHealthCheckLastFailureReason for a calculated health check. |
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_health_check_last_failure_reason
Gets the reason that a specified health check failed most recently.
SELECT
health_check_observations
FROM aws.route53.health_check_last_failure_reasons
WHERE health_check_id = '{{ health_check_id }}' -- required
AND region = '{{ region }}' -- required
;