channel_flow_callback
(**kwargs)¶Calls back 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:
See also: AWS API Documentation
Request Syntax
response = client.channel_flow_callback(
CallbackId='string',
ChannelArn='string',
DeleteResource=True|False,
ChannelMessage={
'MessageId': 'string',
'Content': 'string',
'Metadata': 'string',
'PushNotification': {
'Title': 'string',
'Body': 'string',
'Type': 'DEFAULT'|'VOIP'
},
'MessageAttributes': {
'string': {
'StringValues': [
'string',
]
}
},
'SubChannelId': 'string'
}
)
[REQUIRED]
The identifier passed to the processor by the service when invoked. Use the identifier to call back the service.
This field is autopopulated if not provided.
[REQUIRED]
The ARN of the channel.
DENIED
, pass this parameter with a value of true.[REQUIRED]
Stores information about the processed message.
The message ID.
The message content.
The message metadata.
The push notification configuration of the message.
The title of the push notification.
The body of the push notification.
Enum value that indicates the type of the push notification for a message. DEFAULT
: Normal mobile push notification. VOIP
: VOIP mobile push notification.
The attributes for the message, used for message filtering along with a FilterRule
defined in the PushNotificationPreferences
.
A list of message attribute values.
The strings in a message attribute value.
The ID of the SubChannel.
dict
Response Syntax
{
'ChannelArn': 'string',
'CallbackId': 'string'
}
Response Structure
(dict) --
ChannelArn (string) --
The ARN of the channel.
CallbackId (string) --
The call back ID passed in the request.
Exceptions
ChimeSDKMessaging.Client.exceptions.BadRequestException
ChimeSDKMessaging.Client.exceptions.ForbiddenException
ChimeSDKMessaging.Client.exceptions.UnauthorizedClientException
ChimeSDKMessaging.Client.exceptions.ConflictException
ChimeSDKMessaging.Client.exceptions.ThrottledClientException
ChimeSDKMessaging.Client.exceptions.ServiceUnavailableException
ChimeSDKMessaging.Client.exceptions.ServiceFailureException