listManagedMicrovmImages method
Lists AWS managed MicroVM images available for use as base images. We recommend using pagination to ensure that the operation returns quickly and successfully.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ThrottlingException.
May throw ValidationException.
Parameter maxResults :
The maximum number of results to return in a single call.
Parameter nextToken :
The pagination token from a previous call. Use this token to retrieve the
next page of results.
Implementation
Future<ListManagedMicrovmImagesOutput> listManagedMicrovmImages({
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: '/2025-09-09/managed-microvm-images',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListManagedMicrovmImagesOutput.fromJson(response);
}