deleteWorkflowDefinition method

Future<DeleteWorkflowDefinitionResponse> deleteWorkflowDefinition({
  1. required String workflowDefinitionName,
})

Deletes a workflow definition and all associated resources. This operation cannot be undone.

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

Parameter workflowDefinitionName : The name of the workflow definition to delete.

Implementation

Future<DeleteWorkflowDefinitionResponse> deleteWorkflowDefinition({
  required String workflowDefinitionName,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/workflow-definitions/${Uri.encodeComponent(workflowDefinitionName)}',
    exceptionFnMap: _exceptionFns,
  );
  return DeleteWorkflowDefinitionResponse.fromJson(response);
}