getMicrovmImageVersion method
Retrieves the details of a specific version of a MicroVM image, including its configuration, state, and build information.
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.
Parameter imageVersion :
The version of the MicroVM image to retrieve.
Implementation
Future<GetMicrovmImageVersionOutput> getMicrovmImageVersion({
required String imageIdentifier,
required String imageVersion,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/2025-09-09/microvm-images/${Uri.encodeComponent(imageIdentifier)}/versions/${Uri.encodeComponent(imageVersion)}',
exceptionFnMap: _exceptionFns,
);
return GetMicrovmImageVersionOutput.fromJson(response);
}