Skip to main content

channel_message_status

Creates, updates, deletes, gets or lists a channel_message_status resource.

Overview

Namechannel_message_status
TypeResource
Idaws.chime_sdk_messaging.channel_message_status

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
detailstringContains more details about the message status. (pattern: <code>[\s\S]*</code>)
valuestringThe message status value. (SENT, PENDING, FAILED, DENIED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_channel_message_statusselectchannel_arn, message_id, x-amz-chime-bearer, regionsub-channel-idGets message status for a specified messageId. Use this API to determine the intermediate status of messages going through channel flow processing. The API provides an alternative to retrieving message status if the event was not received because a client wasn't connected to a websocket. Messages can have any one of these statuses. SENT Message processed successfully PENDING Ongoing processing FAILED Processing failed DENIED Message denied by the processor This API does not return statuses for denied messages, because we don't store them once the processor denies them. Only the message sender can invoke this API. 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
channel_arnstringThe ARN of the channel
message_idstringThe ID of the message.
regionstringAWS region (default: us-east-1)
x-amz-chime-bearerstringThe AppInstanceUserArn of the user making the API call.
sub-channel-idstringThe ID of the SubChannel in the request. Only required when getting message status in a SubChannel that the user belongs to.

SELECT examples

Gets message status for a specified messageId. Use this API to determine the intermediate status of messages going through channel flow processing. The API provides an alternative to retrieving message status if the event was not received because a client wasn't connected to a websocket. Messages can have any one of these statuses. SENT Message processed successfully PENDING Ongoing processing FAILED Processing failed DENIED Message denied by the processor This API does not return statuses for denied messages, because we don't store them once the processor denies them. Only the message sender can invoke this API. 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.

SELECT
detail,
value
FROM aws.chime_sdk_messaging.channel_message_status
WHERE channel_arn = '{{ channel_arn }}' -- required
AND message_id = '{{ message_id }}' -- required
AND `x-amz-chime-bearer` = '{{ x-amz-chime-bearer }}' -- required
AND region = '{{ region }}' -- required
AND `sub-channel-id` = '{{ sub-channel-id }}'
;