deleteWorkflow method

Future<void> deleteWorkflow({
  1. required String workflowId,
})

Deletes the specified workflow.

May throw AccessDeniedException. May throw InternalServiceError. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ServiceUnavailableException.

Parameter workflowId : A unique identifier for the workflow.

Implementation

Future<void> deleteWorkflow({
  required String workflowId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'TransferService.DeleteWorkflow'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'WorkflowId': workflowId,
    },
  );
}