describeLanguageModel method
Gets information about a single custom language model. Use this information to see details about the language model in your AWS account. You can also see whether the base language model used to create your custom language model has been updated. If Amazon Transcribe has updated the base model, you can create a new custom language model using the updated base model. If the language model wasn't created, you can use this operation to understand why Amazon Transcribe couldn't create it.
May throw BadRequestException. May throw LimitExceededException. May throw InternalFailureException. May throw NotFoundException.
Parameter modelName
:
The name of the custom language model you submit to get more information.
Implementation
Future<DescribeLanguageModelResponse> describeLanguageModel({
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.DescribeLanguageModel'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ModelName': modelName,
},
);
return DescribeLanguageModelResponse.fromJson(jsonResponse.body);
}