getHealthCheckStatus method

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

Gets status of a specified health check.

May throw NoSuchHealthCheck. May throw InvalidInput.

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 {
  ArgumentError.checkNotNull(healthCheckId, 'healthCheckId');
  _s.validateStringLength(
    'healthCheckId',
    healthCheckId,
    0,
    64,
    isRequired: true,
  );
  final $result = await _protocol.send(
    method: 'GET',
    requestUri:
        '/2013-04-01/healthcheck/${Uri.encodeComponent(healthCheckId)}/status',
    exceptionFnMap: _exceptionFns,
  );
  return GetHealthCheckStatusResponse.fromXml($result.body);
}