channel_flow_callback
async
¶
channel_flow_callback(
callback_id: CallbackIdType,
channel_arn: ChimeArn,
channel_message: ChannelMessageCallback,
*,
config_overrides: Optional[AsyncChimeSDKMessagingClientConfig] = None,
delete_resource: Optional[NonNullableBoolean] = None,
) -> ChannelFlowCallbackResponse
Calls back Amazon Chime SDK messaging with a processing response message. This should be invoked from the processor Lambda. This is a developer API.
You can return one of the following processing responses:
-
Update message content or metadata
-
Deny a message
-
Make no changes to the message
Parameters:
-
callback_id(CallbackIdType) –The identifier passed to the processor by the service when invoked. Use the identifier to call back the service.
-
channel_arn(ChimeArn) –The ARN of the channel.
-
delete_resource(Optional[NonNullableBoolean], default:None) –When a processor determines that a message needs to be
DENIED, pass this parameter with a value of true. -
channel_message(ChannelMessageCallback) –Stores information about the processed message.
Raises:
-
BadRequestException–The input parameters don't match the service's restrictions.
-
ConflictException–The request could not be processed because of conflict in the current state of the resource.
-
ForbiddenException–The client is permanently forbidden from making the request.
-
ServiceFailureException–The service encountered an unexpected error.
-
ServiceUnavailableException–The service is currently unavailable.
-
ThrottledClientException–The client exceeded its request rate limit.
-
UnauthorizedClientException–The client is not currently authorized to make the request.
-
UnknownServiceError–The service returned an error code this client does not model.