updateMicrovmImageVersion method
Updates the status of a specific MicroVM image version.
May throw AccessDeniedException.
May throw ConflictException.
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 update.
Parameter status :
The new status to set for the MicroVM image version.
Implementation
Future<UpdateMicrovmImageVersionResponse> updateMicrovmImageVersion({
required String imageIdentifier,
required String imageVersion,
required MicrovmImageVersionStatus status,
}) async {
final $payload = <String, dynamic>{
'status': status.value,
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri:
'/2025-09-09/microvm-images/${Uri.encodeComponent(imageIdentifier)}/versions/${Uri.encodeComponent(imageVersion)}',
exceptionFnMap: _exceptionFns,
);
return UpdateMicrovmImageVersionResponse.fromJson(response);
}