listBundles method
List all available bundles.
May throw InternalFailureException. May throw ServiceUnavailableException. May throw UnauthorizedException. May throw TooManyRequestsException. May throw BadRequestException.
Parameter maxResults
:
Maximum number of records to list in a single response.
Parameter nextToken
:
Pagination token. Set to null to start listing bundles from start. If
non-null pagination token is returned in a result, then pass its value in
here in another request to list more bundles.
Implementation
Future<ListBundlesResult> listBundles({
int? maxResults,
String? nextToken,
}) async {
final $query = <String, List<String>>{
if (maxResults != null) 'maxResults': [maxResults.toString()],
if (nextToken != null) 'nextToken': [nextToken],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/bundles',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListBundlesResult.fromJson(response);
}