describeTrialComponent method

Future<DescribeTrialComponentResponse> describeTrialComponent({
  1. required String trialComponentName,
})

Provides a list of a trials component's properties.

May throw ResourceNotFound.

Parameter trialComponentName : The name of the trial component to describe.

Implementation

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

  return DescribeTrialComponentResponse.fromJson(jsonResponse.body);
}