本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
为适用于 Amazon Chime AppInstanceBot 的 SDK 消息创建频道成员资格
创建后 AppInstanceBot,即可将其作为成员添加到新频道或现有频道。有关更多信息,请参阅 Amazon Chime 软件开发工具包消息 API 文档 CreateChannelMembership中的CreateChannel和。
以下示例说明如何使用 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