addFlowOutputs method
Future<AddFlowOutputsResponse>
addFlowOutputs({
- required String flowArn,
- required List<
AddOutputRequest> outputs,
Adds outputs to an existing flow. You can create up to 50 outputs per flow.
May throw AddFlowOutputs420Exception. May throw BadRequestException. May throw InternalServerErrorException. May throw ForbiddenException. May throw NotFoundException. May throw ServiceUnavailableException. May throw TooManyRequestsException.
Parameter flowArn
:
The flow that you want to add outputs to.
Parameter outputs
:
A list of outputs that you want to add.
Implementation
Future<AddFlowOutputsResponse> addFlowOutputs({
required String flowArn,
required List<AddOutputRequest> outputs,
}) async {
ArgumentError.checkNotNull(flowArn, 'flowArn');
ArgumentError.checkNotNull(outputs, 'outputs');
final $payload = <String, dynamic>{
'outputs': outputs,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/v1/flows/${Uri.encodeComponent(flowArn)}/outputs',
exceptionFnMap: _exceptionFns,
);
return AddFlowOutputsResponse.fromJson(response);
}