associateChannelFlow method
Associates a channel flow with a channel. Once associated, all messages to
that channel go through channel flow processors. To stop processing, use
the DisassociateChannelFlow API.
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> associateChannelFlow({
required String channelArn,
required String channelFlowArn,
required String chimeBearer,
}) async {
final headers = <String, String>{
'x-amz-chime-bearer': chimeBearer.toString(),
};
final $payload = <String, dynamic>{
'ChannelFlowArn': channelFlowArn,
};
await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/channels/${Uri.encodeComponent(channelArn)}/channel-flow',
headers: headers,
exceptionFnMap: _exceptionFns,
);
}