describeDetectorModel method
Describes a detector model. If the version parameter is not
specified, information about the latest version is returned.
May throw InternalFailureException.
May throw InvalidRequestException.
May throw ResourceNotFoundException.
May throw ServiceUnavailableException.
May throw ThrottlingException.
Parameter detectorModelName :
The name of the detector model.
Parameter detectorModelVersion :
The version of the detector model.
Implementation
Future<DescribeDetectorModelResponse> describeDetectorModel({
required String detectorModelName,
String? detectorModelVersion,
}) async {
final $query = <String, List<String>>{
if (detectorModelVersion != null) 'version': [detectorModelVersion],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/detector-models/${Uri.encodeComponent(detectorModelName)}',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return DescribeDetectorModelResponse.fromJson(response);
}