listRegistries method

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

Lists the registries in the caller's account and Region, with optional filtering by status and discovery authorizer type

May throw AccessDeniedException. May throw InternalServerException. May throw ThrottlingException. May throw ValidationException.

Parameter filters : Filters to apply to the registry list

Parameter maxResults : Maximum number of results to return

Parameter nextToken : Token for pagination

Implementation

Future<ListRegistriesResponse> listRegistries({
  List<RegistryFilter>? filters,
  int? maxResults,
  String? nextToken,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    100,
  );
  final $payload = <String, dynamic>{
    if (filters != null) 'filters': filters,
    if (maxResults != null) 'maxResults': maxResults,
    if (nextToken != null) 'nextToken': nextToken,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/registries-list',
    exceptionFnMap: _exceptionFns,
  );
  return ListRegistriesResponse.fromJson(response);
}