在 Amazon Chime SDK 消息传递中为 AppInstanceBot 创建频道成员资格
创建 AppInstanceBot 后,即可将其作为成员添加到新的或现有频道中。了解更多信息,请参阅《Amazon Chime SDK 消息传递 API》文档中的 CreateChannel 和 CreateChannelMembership。
以下示例说明如何使用 AWS CLI 创建频道并将 AppInstanceBot
添加为成员。
aws chime-sdk-messaging create-channel \ --chime-bearer
caller_app_instance_user_arn
\ --app-instance-arnapp_instance_arn
\ --namechannel_name
\ --member-arns '[ "app_instance_bot_arn
" ]'
以下示例说明如何使用 AWS CLI 向现有频道添加 AppInstanceBot
。
aws chime-sdk-messaging create-channel-membership \ --chime-bearer
caller_app_instance_user_arn
\ --channel-arnchannel_arn
\ --member-arnapp_instance_bot_arn