describeRetrainingScheduler method

Future<DescribeRetrainingSchedulerResponse> describeRetrainingScheduler({
  1. required String modelName,
})

Provides a description of the retraining scheduler, including information such as the model name and retraining parameters.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter modelName : The name of the model that the retraining scheduler is attached to.

Implementation

Future<DescribeRetrainingSchedulerResponse> describeRetrainingScheduler({
  required String modelName,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target':
        'AWSLookoutEquipmentFrontendService.DescribeRetrainingScheduler'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ModelName': modelName,
    },
  );

  return DescribeRetrainingSchedulerResponse.fromJson(jsonResponse.body);
}