getHealthCheckStatus method

Future<GetHealthCheckStatusResponse> getHealthCheckStatus({
  1. required String healthCheckId,
})

Gets status of a specified health check.

May throw InvalidInput. May throw NoSuchHealthCheck.

Parameter healthCheckId : The ID for the health check that you want the current status for. When you created the health check, CreateHealthCheck returned the ID in the response, in the HealthCheckId element.

Implementation

Future<GetHealthCheckStatusResponse> getHealthCheckStatus({
  required String healthCheckId,
}) async {
  final $result = await _protocol.send(
    method: 'GET',
    requestUri:
        '/2013-04-01/healthcheck/${Uri.encodeComponent(healthCheckId)}/status',
    exceptionFnMap: _exceptionFns,
  );
  return GetHealthCheckStatusResponse.fromXml($result.body);
}