getMLTransforms method
Future<GetMLTransformsResponse>
getMLTransforms({
- TransformFilterCriteria? filter,
- int? maxResults,
- String? nextToken,
- TransformSortCriteria? sort,
Gets a sortable, filterable list of existing AWS Glue machine learning
transforms. Machine learning transforms are a special type of transform
that use machine learning to learn the details of the transformation to be
performed by learning from examples provided by humans. These
transformations are then saved by AWS Glue, and you can retrieve their
metadata by calling GetMLTransforms
.
May throw EntityNotFoundException. May throw InvalidInputException. May throw OperationTimeoutException. May throw InternalServiceException.
Parameter filter
:
The filter transformation criteria.
Parameter maxResults
:
The maximum number of results to return.
Parameter nextToken
:
A paginated token to offset the results.
Parameter sort
:
The sorting criteria.
Implementation
Future<GetMLTransformsResponse> getMLTransforms({
TransformFilterCriteria? filter,
int? maxResults,
String? nextToken,
TransformSortCriteria? sort,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
1000,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSGlue.GetMLTransforms'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (filter != null) 'Filter': filter,
if (maxResults != null) 'MaxResults': maxResults,
if (nextToken != null) 'NextToken': nextToken,
if (sort != null) 'Sort': sort,
},
);
return GetMLTransformsResponse.fromJson(jsonResponse.body);
}