deleteAIWorkloadConfig method
Future<DeleteAIWorkloadConfigResponse>
deleteAIWorkloadConfig({
- required String aIWorkloadConfigName,
Deletes the specified AI workload configuration. You cannot delete a configuration that is referenced by an active benchmark job.
May throw ResourceInUse.
May throw ResourceNotFound.
Parameter aIWorkloadConfigName :
The name of the AI workload configuration to delete.
Implementation
Future<DeleteAIWorkloadConfigResponse> deleteAIWorkloadConfig({
required String aIWorkloadConfigName,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'SageMaker.DeleteAIWorkloadConfig'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'AIWorkloadConfigName': aIWorkloadConfigName,
},
);
return DeleteAIWorkloadConfigResponse.fromJson(jsonResponse.body);
}