listDevEndpoints method

Future<ListDevEndpointsResponse> listDevEndpoints({
  1. int? maxResults,
  2. String? nextToken,
  3. Map<String, String>? tags,
})

Retrieves the names of all DevEndpoint resources in this AWS account, or the resources with the specified tag. This operation allows you to see which resources are available in your account, and their names.

This operation takes the optional Tags field, which you can use as a filter on the response so that tagged resources can be retrieved as a group. If you choose to use tags filtering, only resources with the tag are retrieved.

May throw InvalidInputException. May throw EntityNotFoundException. May throw InternalServiceException. May throw OperationTimeoutException.

Parameter maxResults : The maximum size of a list to return.

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

Parameter tags : Specifies to return only these tagged resources.

Implementation

Future<ListDevEndpointsResponse> listDevEndpoints({
  int? maxResults,
  String? nextToken,
  Map<String, String>? tags,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    1000,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSGlue.ListDevEndpoints'
  };
  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,
      if (tags != null) 'Tags': tags,
    },
  );

  return ListDevEndpointsResponse.fromJson(jsonResponse.body);
}