getMicrovmImage method
Retrieves the details of a MicroVM image, including its state, versions, and configuration.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter imageIdentifier :
The unique identifier (ARN or ID) of the MicroVM image to retrieve.
Implementation
Future<GetMicrovmImageOutput> getMicrovmImage({
required String imageIdentifier,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/2025-09-09/microvm-images/${Uri.encodeComponent(imageIdentifier)}',
exceptionFnMap: _exceptionFns,
);
return GetMicrovmImageOutput.fromJson(response);
}