addFlowSources method

Future<AddFlowSourcesResponse> addFlowSources({
  1. required String flowArn,
  2. required List<SetSourceRequest> sources,
})

Adds sources to 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 update.

Parameter sources : A list of sources that you want to add to the flow.

Implementation

Future<AddFlowSourcesResponse> addFlowSources({
  required String flowArn,
  required List<SetSourceRequest> sources,
}) async {
  final $payload = <String, dynamic>{
    'sources': sources,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/v1/flows/${Uri.encodeComponent(flowArn)}/source',
    exceptionFnMap: _exceptionFns,
  );
  return AddFlowSourcesResponse.fromJson(response);
}