describeModel method

Future<DescribeModelOutput> describeModel({
  1. required String modelName,
})

Describes a model that you created using the CreateModel API.

Parameter modelName : The name of the model.

Implementation

Future<DescribeModelOutput> describeModel({
  required String modelName,
}) async {
  ArgumentError.checkNotNull(modelName, 'modelName');
  _s.validateStringLength(
    'modelName',
    modelName,
    0,
    63,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'SageMaker.DescribeModel'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ModelName': modelName,
    },
  );

  return DescribeModelOutput.fromJson(jsonResponse.body);
}