getClassifier method
Retrieve a classifier by name.
May throw EntityNotFoundException. May throw OperationTimeoutException.
Parameter name
:
Name of the classifier to retrieve.
Implementation
Future<GetClassifierResponse> getClassifier({
required String name,
}) async {
ArgumentError.checkNotNull(name, 'name');
_s.validateStringLength(
'name',
name,
1,
255,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSGlue.GetClassifier'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Name': name,
},
);
return GetClassifierResponse.fromJson(jsonResponse.body);
}