updateChannelFlow method

Future<UpdateChannelFlowResponse> updateChannelFlow({
  1. required String channelFlowArn,
  2. required String name,
  3. required List<Processor> processors,
})

Updates channel flow attributes. This is a developer API.

May throw BadRequestException. May throw ConflictException. May throw ForbiddenException. May throw ServiceFailureException. May throw ServiceUnavailableException. May throw ThrottledClientException. May throw UnauthorizedClientException.

Parameter channelFlowArn : The ARN of the channel flow.

Parameter name : The name of the channel flow.

Parameter processors : Information about the processor Lambda functions

Implementation

Future<UpdateChannelFlowResponse> updateChannelFlow({
  required String channelFlowArn,
  required String name,
  required List<Processor> processors,
}) async {
  final $payload = <String, dynamic>{
    'Name': name,
    'Processors': processors,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri: '/channel-flows/${Uri.encodeComponent(channelFlowArn)}',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateChannelFlowResponse.fromJson(response);
}