describeTrainingPlan method

Future<DescribeTrainingPlanResponse> describeTrainingPlan({
  1. required String trainingPlanName,
})

Retrieves detailed information about a specific training plan.

May throw ResourceNotFound.

Parameter trainingPlanName : The name of the training plan to describe.

Implementation

Future<DescribeTrainingPlanResponse> describeTrainingPlan({
  required String trainingPlanName,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'SageMaker.DescribeTrainingPlan'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'TrainingPlanName': trainingPlanName,
    },
  );

  return DescribeTrainingPlanResponse.fromJson(jsonResponse.body);
}