deleteWorkflow method

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

Deletes the specified workflow and all its corresponding resources. This is an async process.

May throw AccessDeniedException. May throw BadRequestException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter domainName : The unique name of the domain.

Parameter workflowId : Unique identifier for the workflow.

Implementation

Future<void> deleteWorkflow({
  required String domainName,
  required String workflowId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/domains/${Uri.encodeComponent(domainName)}/workflows/${Uri.encodeComponent(workflowId)}',
    exceptionFnMap: _exceptionFns,
  );
}