disassociateChannelFlow method

Future<void> disassociateChannelFlow({
  1. required String channelArn,
  2. required String channelFlowArn,
  3. required String chimeBearer,
})

Disassociates a channel flow from all its channels. Once disassociated, all messages to that channel stop going through the channel flow processor.

The x-amz-chime-bearer request header is mandatory. Use the ARN of the AppInstanceUser or AppInstanceBot that makes the API call as the value in the header.

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

Parameter channelArn : The ARN of the channel.

Parameter channelFlowArn : The ARN of the channel flow.

Parameter chimeBearer : The AppInstanceUserArn of the user making the API call.

Implementation

Future<void> disassociateChannelFlow({
  required String channelArn,
  required String channelFlowArn,
  required String chimeBearer,
}) async {
  final headers = <String, String>{
    'x-amz-chime-bearer': chimeBearer.toString(),
  };
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/channels/${Uri.encodeComponent(channelArn)}/channel-flow/${Uri.encodeComponent(channelFlowArn)}',
    headers: headers,
    exceptionFnMap: _exceptionFns,
  );
}