listHealthChecks method

Future<ListHealthChecksResponse> listHealthChecks({
  1. String? marker,
  2. String? maxItems,
})

Retrieve a list of the health checks that are associated with the current AWS account.

May throw InvalidInput. May throw IncompatibleVersion.

Parameter marker : If the value of IsTruncated in the previous response was true, you have more health checks. To get another group, submit another ListHealthChecks request.

For the value of marker, specify the value of NextMarker from the previous response, which is the ID of the first health check that Amazon Route 53 will return if you submit another request.

If the value of IsTruncated in the previous response was false, there are no more health checks to get.

Parameter maxItems : The maximum number of health checks that you want ListHealthChecks to return in response to the current request. Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to a value greater than 100, Route 53 returns only the first 100 health checks.

Implementation

Future<ListHealthChecksResponse> listHealthChecks({
  String? marker,
  String? maxItems,
}) async {
  _s.validateStringLength(
    'marker',
    marker,
    0,
    64,
  );
  final $query = <String, List<String>>{
    if (marker != null) 'marker': [marker],
    if (maxItems != null) 'maxitems': [maxItems],
  };
  final $result = await _protocol.send(
    method: 'GET',
    requestUri: '/2013-04-01/healthcheck',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListHealthChecksResponse.fromXml($result.body);
}