Creating a channel membership for an AppInstanceBot for Amazon Chime SDK messaging
Once you create the AppInstanceBot, you add it as a member to a new or existing channel. For more information see CreateChannel and CreateChannelMembership in the Amazon Chime SDK messaging API documentation.
The following example shows how to use the AWS CLI to create a channel and add an
AppInstanceBot
as a member.
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
" ]'
The following example shows how to use the AWS CLI to add an
AppInstanceBot
to an existing channel.
aws chime-sdk-messaging create-channel-membership \ --chime-bearer
caller_app_instance_user_arn
\ --channel-arnchannel_arn
\ --member-arnapp_instance_bot_arn