getMicrovmImageBuild method
Retrieves the details of a specific MicroVM image build, including its state, target architecture, and snapshot information.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter buildId :
The unique identifier of the build to retrieve.
Parameter imageIdentifier :
The unique identifier (ARN or ID) of the MicroVM image.
Parameter imageVersion :
The version of the MicroVM image.
Implementation
Future<GetMicrovmImageBuildOutput> getMicrovmImageBuild({
required String buildId,
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)}/builds/${Uri.encodeComponent(buildId)}',
exceptionFnMap: _exceptionFns,
);
return GetMicrovmImageBuildOutput.fromJson(response);
}