listResolverEndpoints method

Future<ListResolverEndpointsResponse> listResolverEndpoints({
  1. List<Filter>? filters,
  2. int? maxResults,
  3. String? nextToken,
})

Lists all the Resolver endpoints that were created using the current AWS account.

May throw InvalidNextTokenException. May throw InvalidRequestException. May throw InvalidParameterException. May throw InternalServiceErrorException. May throw ThrottlingException.

Parameter filters : An optional specification to return a subset of Resolver endpoints, such as all inbound Resolver endpoints.

Parameter maxResults : The maximum number of Resolver endpoints that you want to return in the response to a ListResolverEndpoints request. If you don't specify a value for MaxResults, Resolver returns up to 100 Resolver endpoints.

Parameter nextToken : For the first ListResolverEndpoints request, omit this value.

If you have more than MaxResults Resolver endpoints, you can submit another ListResolverEndpoints request to get the next group of Resolver endpoints. In the next request, specify the value of NextToken from the previous response.

Implementation

Future<ListResolverEndpointsResponse> listResolverEndpoints({
  List<Filter>? filters,
  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': 'Route53Resolver.ListResolverEndpoints'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (filters != null) 'Filters': filters,
      if (maxResults != null) 'MaxResults': maxResults,
      if (nextToken != null) 'NextToken': nextToken,
    },
  );

  return ListResolverEndpointsResponse.fromJson(jsonResponse.body);
}