Creating a channel membership for an AppInstanceBot - Amazon Chime SDK

Creating a channel membership for an AppInstanceBot

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-arn app_instance_arn \ --name channel_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-arn channel_arn \ --member-arn app_instance_bot_arn