deletePipeline method

Future<void> deletePipeline({
  1. required String id,
})

The DeletePipeline operation removes a pipeline.

You can only delete a pipeline that has never been used or that is not currently in use (doesn't contain any active jobs). If the pipeline is currently in use, DeletePipeline returns an error.

May throw ValidationException. May throw IncompatibleVersionException. May throw ResourceNotFoundException. May throw ResourceInUseException. May throw AccessDeniedException. May throw InternalServiceException.

Parameter id : The identifier of the pipeline that you want to delete.

Implementation

Future<void> deletePipeline({
  required String id,
}) async {
  ArgumentError.checkNotNull(id, 'id');
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/2012-09-25/pipelines/${Uri.encodeComponent(id)}',
    exceptionFnMap: _exceptionFns,
  );
}