startFlow method
Starts 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 start.
Implementation
Future<StartFlowResponse> startFlow({
required String flowArn,
}) async {
ArgumentError.checkNotNull(flowArn, 'flowArn');
final response = await _protocol.send(
payload: null,
method: 'POST',
requestUri: '/v1/flows/start/${Uri.encodeComponent(flowArn)}',
exceptionFnMap: _exceptionFns,
);
return StartFlowResponse.fromJson(response);
}