Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Gets the reason that a specified health check failed most recently.
Synopsis
- data GetHealthCheckLastFailureReason = GetHealthCheckLastFailureReason' {}
- newGetHealthCheckLastFailureReason :: Text -> GetHealthCheckLastFailureReason
- getHealthCheckLastFailureReason_healthCheckId :: Lens' GetHealthCheckLastFailureReason Text
- data GetHealthCheckLastFailureReasonResponse = GetHealthCheckLastFailureReasonResponse' {}
- newGetHealthCheckLastFailureReasonResponse :: Int -> GetHealthCheckLastFailureReasonResponse
- getHealthCheckLastFailureReasonResponse_httpStatus :: Lens' GetHealthCheckLastFailureReasonResponse Int
- getHealthCheckLastFailureReasonResponse_healthCheckObservations :: Lens' GetHealthCheckLastFailureReasonResponse [HealthCheckObservation]
Creating a Request
data GetHealthCheckLastFailureReason Source #
A request for the reason that a health check failed most recently.
See: newGetHealthCheckLastFailureReason
smart constructor.
GetHealthCheckLastFailureReason' | |
|
Instances
newGetHealthCheckLastFailureReason Source #
Create a value of GetHealthCheckLastFailureReason
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:healthCheckId:GetHealthCheckLastFailureReason'
, getHealthCheckLastFailureReason_healthCheckId
- 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.
Request Lenses
getHealthCheckLastFailureReason_healthCheckId :: Lens' GetHealthCheckLastFailureReason Text Source #
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.
Destructuring the Response
data GetHealthCheckLastFailureReasonResponse Source #
A complex type that contains the response to a
GetHealthCheckLastFailureReason
request.
See: newGetHealthCheckLastFailureReasonResponse
smart constructor.
GetHealthCheckLastFailureReasonResponse' | |
|
Instances
newGetHealthCheckLastFailureReasonResponse Source #
Create a value of GetHealthCheckLastFailureReasonResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:GetHealthCheckLastFailureReasonResponse'
, getHealthCheckLastFailureReasonResponse_httpStatus
- The response's http status code.
$sel:healthCheckObservations:GetHealthCheckLastFailureReasonResponse'
, getHealthCheckLastFailureReasonResponse_healthCheckObservations
- A list that contains one Observation
element for each Amazon Route 53
health checker that is reporting a last failure reason.
Response Lenses
getHealthCheckLastFailureReasonResponse_httpStatus :: Lens' GetHealthCheckLastFailureReasonResponse Int Source #
The response's http status code.
getHealthCheckLastFailureReasonResponse_healthCheckObservations :: Lens' GetHealthCheckLastFailureReasonResponse [HealthCheckObservation] Source #
A list that contains one Observation
element for each Amazon Route 53
health checker that is reporting a last failure reason.