describeAlgorithm method

Future<DescribeAlgorithmOutput> describeAlgorithm({
  1. required String algorithmName,
})

Returns a description of the specified algorithm that is in your account.

Parameter algorithmName : The name of the algorithm to describe.

Implementation

Future<DescribeAlgorithmOutput> describeAlgorithm({
  required String algorithmName,
}) async {
  ArgumentError.checkNotNull(algorithmName, 'algorithmName');
  _s.validateStringLength(
    'algorithmName',
    algorithmName,
    1,
    170,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'SageMaker.DescribeAlgorithm'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'AlgorithmName': algorithmName,
    },
  );

  return DescribeAlgorithmOutput.fromJson(jsonResponse.body);
}