describeExperiment method

Future<DescribeExperimentResponse> describeExperiment({
  1. required String experimentName,
})

Provides a list of an experiment's properties.

May throw ResourceNotFound.

Parameter experimentName : The name of the experiment to describe.

Implementation

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

  return DescribeExperimentResponse.fromJson(jsonResponse.body);
}