updateModel method
Updates a model in the account.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter modelName :
The name of the model to update.
Parameter modelDiagnosticsOutputConfiguration :
The Amazon S3 location where you want Amazon Lookout for Equipment to save
the pointwise model diagnostics for the model. You must also specify the
RoleArn request parameter.
Parameter roleArn :
The ARN of the model to update.
Implementation
Future<void> updateModel({
required String modelName,
LabelsInputConfiguration? labelsInputConfiguration,
ModelDiagnosticsOutputConfiguration? modelDiagnosticsOutputConfiguration,
String? roleArn,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'AWSLookoutEquipmentFrontendService.UpdateModel'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ModelName': modelName,
if (labelsInputConfiguration != null)
'LabelsInputConfiguration': labelsInputConfiguration,
if (modelDiagnosticsOutputConfiguration != null)
'ModelDiagnosticsOutputConfiguration':
modelDiagnosticsOutputConfiguration,
if (roleArn != null) 'RoleArn': roleArn,
},
);
}