listRegistries method

Future<ListRegistriesResponse> listRegistries({
  1. int? maxResults,
  2. String? nextToken,
})

Returns a list of registries that you have created, with minimal registry information. Registries in the Deleting status will not be included in the results. Empty results will be returned if there are no registries available.

May throw InvalidInputException. May throw AccessDeniedException. May throw InternalServiceException.

Parameter maxResults : Maximum number of results required per page. If the value is not supplied, this will be defaulted to 25 per page.

Parameter nextToken : A continuation token, if this is a continuation call.

Implementation

Future<ListRegistriesResponse> listRegistries({
  int? maxResults,
  String? nextToken,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    100,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSGlue.ListRegistries'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (maxResults != null) 'MaxResults': maxResults,
      if (nextToken != null) 'NextToken': nextToken,
    },
  );

  return ListRegistriesResponse.fromJson(jsonResponse.body);
}