updateModelVersionStatus method
Updates the status of a model version.
You can perform the following status updates:
-
Change the
TRAINING_IN_PROGRESSstatus toTRAINING_CANCELLED. -
Change the
TRAINING_COMPLETEstatus toACTIVE. -
Change
ACTIVEtoINACTIVE.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter modelId :
The model ID of the model version to update.
Parameter modelType :
The model type.
Parameter modelVersionNumber :
The model version number.
Parameter status :
The model version status.
Implementation
Future<void> updateModelVersionStatus({
required String modelId,
required ModelTypeEnum modelType,
required String modelVersionNumber,
required ModelVersionStatus status,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSHawksNestServiceFacade.UpdateModelVersionStatus'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'modelId': modelId,
'modelType': modelType.value,
'modelVersionNumber': modelVersionNumber,
'status': status.value,
},
);
}