removeFlowOutput method
Removes an output from an existing flow. This request can be made only on an output that does not have an entitlement associated with it. If the output has an entitlement, you must revoke the entitlement instead. When an entitlement is revoked from a flow, the service automatically removes the associated output.
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 remove an output from.
Parameter outputArn
:
The ARN of the output that you want to remove.
Implementation
Future<RemoveFlowOutputResponse> removeFlowOutput({
required String flowArn,
required String outputArn,
}) async {
ArgumentError.checkNotNull(flowArn, 'flowArn');
ArgumentError.checkNotNull(outputArn, 'outputArn');
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/v1/flows/${Uri.encodeComponent(flowArn)}/outputs/${Uri.encodeComponent(outputArn)}',
exceptionFnMap: _exceptionFns,
);
return RemoveFlowOutputResponse.fromJson(response);
}