stopInferenceScheduler method

Future<StopInferenceSchedulerResponse> stopInferenceScheduler({
  1. required String inferenceSchedulerName,
})

Stops an inference scheduler.

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

Parameter inferenceSchedulerName : The name of the inference scheduler to be stopped.

Implementation

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

  return StopInferenceSchedulerResponse.fromJson(jsonResponse.body);
}