stopFlow method
Stops a flow.
May throw BadRequestException. May throw InternalServerErrorException. May throw ForbiddenException. May throw NotFoundException. May throw ServiceUnavailableException. May throw TooManyRequestsException.
Parameter flowArn
:
The ARN of the flow that you want to stop.
Implementation
Future<StopFlowResponse> stopFlow({
required String flowArn,
}) async {
ArgumentError.checkNotNull(flowArn, 'flowArn');
final response = await _protocol.send(
payload: null,
method: 'POST',
requestUri: '/v1/flows/stop/${Uri.encodeComponent(flowArn)}',
exceptionFnMap: _exceptionFns,
);
return StopFlowResponse.fromJson(response);
}