ChannelMessageCallback - Amazon Chime SDK

ChannelMessageCallback

Stores information about a callback.

Contents

MessageId

The message ID.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 128.

Pattern: [-_a-zA-Z0-9]*

Required: Yes

Content

The message content. For Amazon Lex V2 bot responses, this field holds a list of messages originating from the bot. For more information, refer to Processing responses from an AppInstanceBot in the Amazon Chime SDK Messaging Developer Guide.

Type: String

Length Constraints: Minimum length of 1.

Pattern: [\s\S]*

Required: No

ContentType

The content type of the call-back message. For Amazon Lex V2 bot responses, the content type is application/amz-chime-lex-msgs for success responses and application/amz-chime-lex-error for failure responses. For more information, refer to Processing responses from an AppInstanceBot in the Amazon Chime SDK Messaging Developer Guide.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 45.

Pattern: [\s\S]*

Required: No

MessageAttributes

The attributes for the channel message. For Amazon Lex V2 bot responses, the attributes are mapped to specific fields from the bot. For more information, refer to Processing responses from an AppInstanceBot in the Amazon Chime SDK Messaging Developer Guide.

Type: String to MessageAttributeValue object map

Key Length Constraints: Minimum length of 1. Maximum length of 64.

Key Pattern: [\s\S]*

Required: No

Metadata

The message metadata.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 1024.

Pattern: .*

Required: No

PushNotification

The push notification configuration of the message.

Type: PushNotificationConfiguration object

Required: No

SubChannelId

The ID of the SubChannel.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 128.

Pattern: [-_a-zA-Z0-9]*

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: