deleteFlow method
Deletes a flow. Before you can delete a flow, you must stop the flow.
May throw BadRequestException.
May throw ForbiddenException.
May throw InternalServerErrorException.
May throw NotFoundException.
May throw ServiceUnavailableException.
May throw TooManyRequestsException.
Parameter flowArn :
The Amazon Resource Name (ARN) of the flow that you want to delete.
Implementation
Future<DeleteFlowResponse> deleteFlow({
required String flowArn,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/v1/flows/${Uri.encodeComponent(flowArn)}',
exceptionFnMap: _exceptionFns,
);
return DeleteFlowResponse.fromJson(response);
}