listFunctions method
Returns a list of your Lambda functions. For each function, the response includes the function configuration information. You must use GetFunction to retrieve the code for your function.
This operation requires permission for the
lambda:ListFunctions
action.
May throw ServiceException.
Parameter marker
:
Optional string. An opaque pagination token returned from a previous
ListFunctions
operation. If present, indicates where to
continue the listing.
Parameter maxItems
:
Optional integer. Specifies the maximum number of AWS Lambda functions to
return in response. This parameter value must be greater than 0.
Implementation
Future<ListFunctionsResponse> listFunctions({
String? marker,
int? maxItems,
}) async {
_s.validateNumRange(
'maxItems',
maxItems,
1,
10000,
);
final $query = <String, List<String>>{
if (marker != null) 'Marker': [marker],
if (maxItems != null) 'MaxItems': [maxItems.toString()],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/2014-11-13/functions/',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListFunctionsResponse.fromJson(response);
}