listDiscoverers method

Future<ListDiscoverersResponse> listDiscoverers({
  1. String? discovererIdPrefix,
  2. int? limit,
  3. String? nextToken,
  4. String? sourceArnPrefix,
})

List the discoverers.

May throw ServiceUnavailableException. May throw BadRequestException. May throw UnauthorizedException. May throw InternalServerErrorException. May throw ForbiddenException.

Parameter discovererIdPrefix : Specifying this limits the results to only those discoverer IDs that start with the specified prefix.

Parameter nextToken : The token that specifies the next page of results to return. To request the first page, leave NextToken empty. The token will expire in 24 hours, and cannot be shared with other accounts.

Parameter sourceArnPrefix : Specifying this limits the results to only those ARNs that start with the specified prefix.

Implementation

Future<ListDiscoverersResponse> listDiscoverers({
  String? discovererIdPrefix,
  int? limit,
  String? nextToken,
  String? sourceArnPrefix,
}) async {
  final $query = <String, List<String>>{
    if (discovererIdPrefix != null)
      'discovererIdPrefix': [discovererIdPrefix],
    if (limit != null) 'limit': [limit.toString()],
    if (nextToken != null) 'nextToken': [nextToken],
    if (sourceArnPrefix != null) 'sourceArnPrefix': [sourceArnPrefix],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/v1/discoverers',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListDiscoverersResponse.fromJson(response);
}