Chime Sdk Messaging

This page documents function available when using the Chime_Sdk_Messaging module, created with @service Chime_Sdk_Messaging.

Index

Documentation

Main.Chime_Sdk_Messaging.batch_create_channel_membershipMethod
batch_create_channel_membership(member_arns, channel_arn, x-amz-chime-bearer)
batch_create_channel_membership(member_arns, channel_arn, x-amz-chime-bearer, params::Dict{String,<:Any})

Adds a specified number of users to a channel.

Arguments

  • member_arns: The ARNs of the members you want to add to the channel.
  • channel_arn: The ARN of the channel to which you're adding users.
  • x-amz-chime-bearer: The AppInstanceUserArn of the user that makes the API call.

Optional Parameters

Optional parameters can be passed as a params::Dict{String,<:Any}. Valid keys are:

  • "Type": The membership type of a user, DEFAULT or HIDDEN. Default members are always returned as part of ListChannelMemberships. Hidden members are only returned if the type filter in ListChannelMemberships equals HIDDEN. Otherwise hidden members are not returned. This is only supported by moderators.
source
Main.Chime_Sdk_Messaging.create_channelMethod
create_channel(app_instance_arn, client_request_token, name, x-amz-chime-bearer)
create_channel(app_instance_arn, client_request_token, name, x-amz-chime-bearer, params::Dict{String,<:Any})

Creates a channel to which you can add users and send messages. Restriction: You can't change a channel's privacy. The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

Arguments

  • app_instance_arn: The ARN of the channel request.
  • client_request_token: The client token for the request. An Idempotency token.
  • name: The name of the channel.
  • x-amz-chime-bearer: The AppInstanceUserArn of the user that makes the API call.

Optional Parameters

Optional parameters can be passed as a params::Dict{String,<:Any}. Valid keys are:

  • "Metadata": The metadata of the creation request. Limited to 1KB and UTF-8.
  • "Mode": The channel mode: UNRESTRICTED or RESTRICTED. Administrators, moderators, and channel members can add themselves and other members to unrestricted channels. Only administrators and moderators can add members to restricted channels.
  • "Privacy": The channel's privacy level: PUBLIC or PRIVATE. Private channels aren't discoverable by users outside the channel. Public channels are discoverable by anyone in the AppInstance.
  • "Tags": The tags for the creation request.
source
Main.Chime_Sdk_Messaging.create_channel_banMethod
create_channel_ban(member_arn, channel_arn, x-amz-chime-bearer)
create_channel_ban(member_arn, channel_arn, x-amz-chime-bearer, params::Dict{String,<:Any})

Permanently bans a member from a channel. Moderators can't add banned members to a channel. To undo a ban, you first have to DeleteChannelBan, and then CreateChannelMembership. Bans are cleaned up when you delete users or channels. If you ban a user who is already part of a channel, that user is automatically kicked from the channel. The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

Arguments

  • member_arn: The ARN of the member being banned.
  • channel_arn: The ARN of the ban request.
  • x-amz-chime-bearer: The AppInstanceUserArn of the user that makes the API call.
source
Main.Chime_Sdk_Messaging.create_channel_membershipMethod
create_channel_membership(member_arn, type, channel_arn, x-amz-chime-bearer)
create_channel_membership(member_arn, type, channel_arn, x-amz-chime-bearer, params::Dict{String,<:Any})

Adds a user to a channel. The InvitedBy response field is derived from the request header. A channel member can: List messages Send messages Receive messages Edit their own messages Leave the channel Privacy settings impact this action as follows: Public Channels: You do not need to be a member to list messages, but you must be a member to send messages. Private Channels: You must be a member to list or send messages. The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

Arguments

  • member_arn: The ARN of the member you want to add to the channel.
  • type: The membership type of a user, DEFAULT or HIDDEN. Default members are always returned as part of ListChannelMemberships. Hidden members are only returned if the type filter in ListChannelMemberships equals HIDDEN. Otherwise hidden members are not returned. This is only supported by moderators.
  • channel_arn: The ARN of the channel to which you're adding users.
  • x-amz-chime-bearer: The AppInstanceUserArn of the user that makes the API call.
source
Main.Chime_Sdk_Messaging.create_channel_moderatorMethod
create_channel_moderator(channel_moderator_arn, channel_arn, x-amz-chime-bearer)
create_channel_moderator(channel_moderator_arn, channel_arn, x-amz-chime-bearer, params::Dict{String,<:Any})

Creates a new ChannelModerator. A channel moderator can: Add and remove other members of the channel. Add and remove other moderators of the channel. Add and remove user bans for the channel. Redact messages in the channel. List messages in the channel. The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

Arguments

  • channel_moderator_arn: The ARN of the moderator.
  • channel_arn: The ARN of the channel.
  • x-amz-chime-bearer: The AppInstanceUserArn of the user that makes the API call.
source
Main.Chime_Sdk_Messaging.delete_channelMethod
delete_channel(channel_arn, x-amz-chime-bearer)
delete_channel(channel_arn, x-amz-chime-bearer, params::Dict{String,<:Any})

Immediately makes a channel and its memberships inaccessible and marks them for deletion. This is an irreversible process. The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

Arguments

  • channel_arn: The ARN of the channel being deleted.
  • x-amz-chime-bearer: The AppInstanceUserArn of the user that makes the API call.
source
Main.Chime_Sdk_Messaging.delete_channel_banMethod
delete_channel_ban(channel_arn, member_arn, x-amz-chime-bearer)
delete_channel_ban(channel_arn, member_arn, x-amz-chime-bearer, params::Dict{String,<:Any})

Removes a user from a channel's ban list. The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

Arguments

  • channel_arn: The ARN of the channel from which the AppInstanceUser was banned.
  • member_arn: The ARN of the AppInstanceUser that you want to reinstate.
  • x-amz-chime-bearer: The AppInstanceUserArn of the user that makes the API call.
source
Main.Chime_Sdk_Messaging.delete_channel_membershipMethod
delete_channel_membership(channel_arn, member_arn, x-amz-chime-bearer)
delete_channel_membership(channel_arn, member_arn, x-amz-chime-bearer, params::Dict{String,<:Any})

Removes a member from a channel. The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

Arguments

  • channel_arn: The ARN of the channel from which you want to remove the user.
  • member_arn: The ARN of the member that you're removing from the channel.
  • x-amz-chime-bearer: The AppInstanceUserArn of the user that makes the API call.
source
Main.Chime_Sdk_Messaging.delete_channel_messageMethod
delete_channel_message(channel_arn, message_id, x-amz-chime-bearer)
delete_channel_message(channel_arn, message_id, x-amz-chime-bearer, params::Dict{String,<:Any})

Deletes a channel message. Only admins can perform this action. Deletion makes messages inaccessible immediately. A background process deletes any revisions created by UpdateChannelMessage. The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

Arguments

  • channel_arn: The ARN of the channel.
  • message_id: The ID of the message being deleted.
  • x-amz-chime-bearer: The AppInstanceUserArn of the user that makes the API call.
source
Main.Chime_Sdk_Messaging.delete_channel_moderatorMethod
delete_channel_moderator(channel_arn, channel_moderator_arn, x-amz-chime-bearer)
delete_channel_moderator(channel_arn, channel_moderator_arn, x-amz-chime-bearer, params::Dict{String,<:Any})

Deletes a channel moderator. The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

Arguments

  • channel_arn: The ARN of the channel.
  • channel_moderator_arn: The ARN of the moderator being deleted.
  • x-amz-chime-bearer: The AppInstanceUserArn of the user that makes the API call.
source
Main.Chime_Sdk_Messaging.describe_channelMethod
describe_channel(channel_arn, x-amz-chime-bearer)
describe_channel(channel_arn, x-amz-chime-bearer, params::Dict{String,<:Any})

Returns the full details of a channel in an Amazon Chime AppInstance. The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

Arguments

  • channel_arn: The ARN of the channel.
  • x-amz-chime-bearer: The AppInstanceUserArn of the user that makes the API call.
source
Main.Chime_Sdk_Messaging.describe_channel_banMethod
describe_channel_ban(channel_arn, member_arn, x-amz-chime-bearer)
describe_channel_ban(channel_arn, member_arn, x-amz-chime-bearer, params::Dict{String,<:Any})

Returns the full details of a channel ban. The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

Arguments

  • channel_arn: The ARN of the channel from which the user is banned.
  • member_arn: The ARN of the member being banned.
  • x-amz-chime-bearer: The AppInstanceUserArn of the user that makes the API call.
source
Main.Chime_Sdk_Messaging.describe_channel_membershipMethod
describe_channel_membership(channel_arn, member_arn, x-amz-chime-bearer)
describe_channel_membership(channel_arn, member_arn, x-amz-chime-bearer, params::Dict{String,<:Any})

Returns the full details of a user's channel membership. The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

Arguments

  • channel_arn: The ARN of the channel.
  • member_arn: The ARN of the member.
  • x-amz-chime-bearer: The AppInstanceUserArn of the user that makes the API call.
source
Main.Chime_Sdk_Messaging.describe_channel_membership_for_app_instance_userMethod
describe_channel_membership_for_app_instance_user(app-instance-user-arn, channel_arn, x-amz-chime-bearer)
describe_channel_membership_for_app_instance_user(app-instance-user-arn, channel_arn, x-amz-chime-bearer, params::Dict{String,<:Any})

Returns the details of a channel based on the membership of the specified AppInstanceUser. The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

Arguments

  • app-instance-user-arn: The ARN of the user in a channel.
  • channel_arn: The ARN of the channel to which the user belongs.
  • x-amz-chime-bearer: The AppInstanceUserArn of the user that makes the API call.
source
Main.Chime_Sdk_Messaging.describe_channel_moderated_by_app_instance_userMethod
describe_channel_moderated_by_app_instance_user(app-instance-user-arn, channel_arn, x-amz-chime-bearer)
describe_channel_moderated_by_app_instance_user(app-instance-user-arn, channel_arn, x-amz-chime-bearer, params::Dict{String,<:Any})

Returns the full details of a channel moderated by the specified AppInstanceUser. The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

Arguments

  • app-instance-user-arn: The ARN of the AppInstanceUser in the moderated channel.
  • channel_arn: The ARN of the moderated channel.
  • x-amz-chime-bearer: The AppInstanceUserArn of the user that makes the API call.
source
Main.Chime_Sdk_Messaging.describe_channel_moderatorMethod
describe_channel_moderator(channel_arn, channel_moderator_arn, x-amz-chime-bearer)
describe_channel_moderator(channel_arn, channel_moderator_arn, x-amz-chime-bearer, params::Dict{String,<:Any})

Returns the full details of a single ChannelModerator. The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

Arguments

  • channel_arn: The ARN of the channel.
  • channel_moderator_arn: The ARN of the channel moderator.
  • x-amz-chime-bearer: The AppInstanceUserArn of the user that makes the API call.
source
Main.Chime_Sdk_Messaging.get_channel_messageMethod
get_channel_message(channel_arn, message_id, x-amz-chime-bearer)
get_channel_message(channel_arn, message_id, x-amz-chime-bearer, params::Dict{String,<:Any})

Gets the full details of a channel message. The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

Arguments

  • channel_arn: The ARN of the channel.
  • message_id: The ID of the message.
  • x-amz-chime-bearer: The AppInstanceUserArn of the user that makes the API call.
source
Main.Chime_Sdk_Messaging.list_channel_bansMethod
list_channel_bans(channel_arn, x-amz-chime-bearer)
list_channel_bans(channel_arn, x-amz-chime-bearer, params::Dict{String,<:Any})

Lists all the users banned from a particular channel. The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

Arguments

  • channel_arn: The ARN of the channel.
  • x-amz-chime-bearer: The AppInstanceUserArn of the user that makes the API call.

Optional Parameters

Optional parameters can be passed as a params::Dict{String,<:Any}. Valid keys are:

  • "max-results": The maximum number of bans that you want returned.
  • "next-token": The token passed by previous API calls until all requested bans are returned.
source
Main.Chime_Sdk_Messaging.list_channel_membershipsMethod
list_channel_memberships(channel_arn, x-amz-chime-bearer)
list_channel_memberships(channel_arn, x-amz-chime-bearer, params::Dict{String,<:Any})

Lists all channel memberships in a channel. The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

Arguments

  • channel_arn: The maximum number of channel memberships that you want returned.
  • x-amz-chime-bearer: The AppInstanceUserArn of the user that makes the API call.

Optional Parameters

Optional parameters can be passed as a params::Dict{String,<:Any}. Valid keys are:

  • "max-results": The maximum number of channel memberships that you want returned.
  • "next-token": The token passed by previous API calls until all requested channel memberships are returned.
  • "type": The membership type of a user, DEFAULT or HIDDEN. Default members are always returned as part of ListChannelMemberships. Hidden members are only returned if the type filter in ListChannelMemberships equals HIDDEN. Otherwise hidden members are not returned.
source
Main.Chime_Sdk_Messaging.list_channel_memberships_for_app_instance_userMethod
list_channel_memberships_for_app_instance_user(x-amz-chime-bearer)
list_channel_memberships_for_app_instance_user(x-amz-chime-bearer, params::Dict{String,<:Any})

Lists all channels that a particular AppInstanceUser is a part of. Only an AppInstanceAdmin can call the API with a user ARN that is not their own. The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

Arguments

  • x-amz-chime-bearer: The AppInstanceUserArn of the user that makes the API call.

Optional Parameters

Optional parameters can be passed as a params::Dict{String,<:Any}. Valid keys are:

  • "app-instance-user-arn": The ARN of the AppInstanceUsers
  • "max-results": The maximum number of users that you want returned.
  • "next-token": The token returned from previous API requests until the number of channel memberships is reached.
source
Main.Chime_Sdk_Messaging.list_channel_messagesMethod
list_channel_messages(channel_arn, x-amz-chime-bearer)
list_channel_messages(channel_arn, x-amz-chime-bearer, params::Dict{String,<:Any})

List all the messages in a channel. Returns a paginated list of ChannelMessages. By default, sorted by creation timestamp in descending order. Redacted messages appear in the results as empty, since they are only redacted, not deleted. Deleted messages do not appear in the results. This action always returns the latest version of an edited message. Also, the x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

Arguments

  • channel_arn: The ARN of the channel.
  • x-amz-chime-bearer: The AppInstanceUserArn of the user that makes the API call.

Optional Parameters

Optional parameters can be passed as a params::Dict{String,<:Any}. Valid keys are:

  • "max-results": The maximum number of messages that you want returned.
  • "next-token": The token passed by previous API calls until all requested messages are returned.
  • "not-after": The final or ending time stamp for your requested messages.
  • "not-before": The initial or starting time stamp for your requested messages.
  • "sort-order": The order in which you want messages sorted. Default is Descending, based on time created.
source
Main.Chime_Sdk_Messaging.list_channel_moderatorsMethod
list_channel_moderators(channel_arn, x-amz-chime-bearer)
list_channel_moderators(channel_arn, x-amz-chime-bearer, params::Dict{String,<:Any})

Lists all the moderators for a channel. The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

Arguments

  • channel_arn: The ARN of the channel.
  • x-amz-chime-bearer: The AppInstanceUserArn of the user that makes the API call.

Optional Parameters

Optional parameters can be passed as a params::Dict{String,<:Any}. Valid keys are:

  • "max-results": The maximum number of moderators that you want returned.
  • "next-token": The token passed by previous API calls until all requested moderators are returned.
source
Main.Chime_Sdk_Messaging.list_channelsMethod
list_channels(app-instance-arn, x-amz-chime-bearer)
list_channels(app-instance-arn, x-amz-chime-bearer, params::Dict{String,<:Any})

Lists all Channels created under a single Chime App as a paginated list. You can specify filters to narrow results. Functionality &amp; restrictions Use privacy = PUBLIC to retrieve all public channels in the account. Only an AppInstanceAdmin can set privacy = PRIVATE to list the private channels in an account. The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

Arguments

  • app-instance-arn: The ARN of the AppInstance.
  • x-amz-chime-bearer: The AppInstanceUserArn of the user that makes the API call.

Optional Parameters

Optional parameters can be passed as a params::Dict{String,<:Any}. Valid keys are:

  • "max-results": The maximum number of channels that you want to return.
  • "next-token": The token passed by previous API calls until all requested channels are returned.
  • "privacy": The privacy setting. PUBLIC retrieves all the public channels. PRIVATE retrieves private channels. Only an AppInstanceAdmin can retrieve private channels.
source
Main.Chime_Sdk_Messaging.list_channels_moderated_by_app_instance_userMethod
list_channels_moderated_by_app_instance_user(x-amz-chime-bearer)
list_channels_moderated_by_app_instance_user(x-amz-chime-bearer, params::Dict{String,<:Any})

A list of the channels moderated by an AppInstanceUser. The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

Arguments

  • x-amz-chime-bearer: The AppInstanceUserArn of the user that makes the API call.

Optional Parameters

Optional parameters can be passed as a params::Dict{String,<:Any}. Valid keys are:

  • "app-instance-user-arn": The ARN of the user in the moderated channel.
  • "max-results": The maximum number of channels in the request.
  • "next-token": The token returned from previous API requests until the number of channels moderated by the user is reached.
source
Main.Chime_Sdk_Messaging.redact_channel_messageMethod
redact_channel_message(channel_arn, message_id, x-amz-chime-bearer)
redact_channel_message(channel_arn, message_id, x-amz-chime-bearer, params::Dict{String,<:Any})

Redacts message content, but not metadata. The message exists in the back end, but the action returns null content, and the state shows as redacted. The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

Arguments

  • channel_arn: The ARN of the channel containing the messages that you want to redact.
  • message_id: The ID of the message being redacted.
  • x-amz-chime-bearer: The AppInstanceUserArn of the user that makes the API call.
source
Main.Chime_Sdk_Messaging.send_channel_messageMethod
send_channel_message(client_request_token, content, persistence, type, channel_arn, x-amz-chime-bearer)
send_channel_message(client_request_token, content, persistence, type, channel_arn, x-amz-chime-bearer, params::Dict{String,<:Any})

Sends a message to a particular channel that the member is a part of. The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header. Also, STANDARD messages can contain 4KB of data and the 1KB of metadata. CONTROL messages can contain 30 bytes of data and no metadata.

Arguments

  • client_request_token: The Idempotency token for each client request.
  • content: The content of the message.
  • persistence: Boolean that controls whether the message is persisted on the back end. Required.
  • type: The type of message, STANDARD or CONTROL.
  • channel_arn: The ARN of the channel.
  • x-amz-chime-bearer: The AppInstanceUserArn of the user that makes the API call.

Optional Parameters

Optional parameters can be passed as a params::Dict{String,<:Any}. Valid keys are:

  • "Metadata": The optional metadata for each message.
source
Main.Chime_Sdk_Messaging.update_channelMethod
update_channel(mode, name, channel_arn, x-amz-chime-bearer)
update_channel(mode, name, channel_arn, x-amz-chime-bearer, params::Dict{String,<:Any})

Update a channel's attributes. Restriction: You can't change a channel's privacy. The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

Arguments

  • mode: The mode of the update request.
  • name: The name of the channel.
  • channel_arn: The ARN of the channel.
  • x-amz-chime-bearer: The AppInstanceUserArn of the user that makes the API call.

Optional Parameters

Optional parameters can be passed as a params::Dict{String,<:Any}. Valid keys are:

  • "Metadata": The metadata for the update request.
source
Main.Chime_Sdk_Messaging.update_channel_messageMethod
update_channel_message(channel_arn, message_id, x-amz-chime-bearer)
update_channel_message(channel_arn, message_id, x-amz-chime-bearer, params::Dict{String,<:Any})

Updates the content of a message. The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

Arguments

  • channel_arn: The ARN of the channel.
  • message_id: The ID string of the message being updated.
  • x-amz-chime-bearer: The AppInstanceUserArn of the user that makes the API call.

Optional Parameters

Optional parameters can be passed as a params::Dict{String,<:Any}. Valid keys are:

  • "Content": The content of the message being updated.
  • "Metadata": The metadata of the message being updated.
source
Main.Chime_Sdk_Messaging.update_channel_read_markerMethod
update_channel_read_marker(channel_arn, x-amz-chime-bearer)
update_channel_read_marker(channel_arn, x-amz-chime-bearer, params::Dict{String,<:Any})

The details of the time when a user last read messages in a channel. The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn of the user that makes the API call as the value in the header.

Arguments

  • channel_arn: The ARN of the channel.
  • x-amz-chime-bearer: The AppInstanceUserArn of the user that makes the API call.
source