stopFlow method

Future<StopFlowResponse> stopFlow({
  1. required String flowArn,
})

Stops a 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 stop.

Implementation

Future<StopFlowResponse> stopFlow({
  required String flowArn,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'POST',
    requestUri: '/v1/flows/stop/${Uri.encodeComponent(flowArn)}',
    exceptionFnMap: _exceptionFns,
  );
  return StopFlowResponse.fromJson(response);
}