getHealthCheck method
Gets information about a specified health check.
May throw NoSuchHealthCheck. May throw InvalidInput. May throw IncompatibleVersion.
Parameter healthCheckId
:
The identifier that Amazon Route 53 assigned to the health check when you
created it. When you add or update a resource record set, you use this
value to specify which health check to use. The value can be up to 64
characters long.
Implementation
Future<GetHealthCheckResponse> getHealthCheck({
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)}',
exceptionFnMap: _exceptionFns,
);
return GetHealthCheckResponse.fromXml($result.body);
}