deleteLanguageModel method
Deletes a custom language model using its name.
May throw BadRequestException. May throw LimitExceededException. May throw InternalFailureException.
Parameter modelName
:
The name of the model you're choosing to delete.
Implementation
Future<void> deleteLanguageModel({
required String modelName,
}) async {
ArgumentError.checkNotNull(modelName, 'modelName');
_s.validateStringLength(
'modelName',
modelName,
1,
200,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'Transcribe.DeleteLanguageModel'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ModelName': modelName,
},
);
}