stopEdgePackagingJob method

Future<void> stopEdgePackagingJob({
  1. required String edgePackagingJobName,
})

Request to stop an edge packaging job.

Parameter edgePackagingJobName : The name of the edge packaging job.

Implementation

Future<void> stopEdgePackagingJob({
  required String edgePackagingJobName,
}) async {
  ArgumentError.checkNotNull(edgePackagingJobName, 'edgePackagingJobName');
  _s.validateStringLength(
    'edgePackagingJobName',
    edgePackagingJobName,
    1,
    63,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'SageMaker.StopEdgePackagingJob'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'EdgePackagingJobName': edgePackagingJobName,
    },
  );
}