Note: You are viewing the documentation for an older major version of the AWS SDK for JavaScript (v2).
The modular AWS SDK for JavaScript (v3) is now General Available. For more information see the Developer Guide or API Reference.
Class: AWS.ChimeSDKMessaging
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.ChimeSDKMessaging
- Identifier:
- chimesdkmessaging
- API Version:
- 2021-05-15
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
The Amazon Chime SDK Messaging APIs in this section allow software developers to send and receive messages in custom messaging applications. These APIs depend on the frameworks provided by the Amazon Chime SDK Identity APIs. For more information about the messaging APIs, see .
Sending a Request Using ChimeSDKMessaging
var chimesdkmessaging = new AWS.ChimeSDKMessaging();
chimesdkmessaging.batchCreateChannelMembership(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the ChimeSDKMessaging object uses this specific API, you can
construct the object by passing the apiVersion
option to the constructor:
var chimesdkmessaging = new AWS.ChimeSDKMessaging({apiVersion: '2021-05-15'});
You can also set the API version globally in AWS.config.apiVersions
using
the chimesdkmessaging service identifier:
AWS.config.apiVersions = {
chimesdkmessaging: '2021-05-15',
// other service API versions
};
var chimesdkmessaging = new AWS.ChimeSDKMessaging();
Constructor Summary
-
new AWS.ChimeSDKMessaging(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary
-
batchCreateChannelMembership(params = {}, callback) ⇒ AWS.Request
Adds a specified number of users to a channel.
-
createChannel(params = {}, callback) ⇒ AWS.Request
Creates a channel to which you can add users and send messages.
-
createChannelBan(params = {}, callback) ⇒ AWS.Request
Permanently bans a member from a channel.
-
createChannelMembership(params = {}, callback) ⇒ AWS.Request
Adds a user to a channel.
-
createChannelModerator(params = {}, callback) ⇒ AWS.Request
Creates a new ChannelModerator.
-
deleteChannel(params = {}, callback) ⇒ AWS.Request
Immediately makes a channel and its memberships inaccessible and marks them for deletion.
-
deleteChannelBan(params = {}, callback) ⇒ AWS.Request
Removes a user from a channel's ban list.
-
deleteChannelMembership(params = {}, callback) ⇒ AWS.Request
Removes a member from a channel.
-
deleteChannelMessage(params = {}, callback) ⇒ AWS.Request
Deletes a channel message.
-
deleteChannelModerator(params = {}, callback) ⇒ AWS.Request
Deletes a channel moderator.
-
describeChannel(params = {}, callback) ⇒ AWS.Request
Returns the full details of a channel in an Amazon Chime AppInstance.
-
describeChannelBan(params = {}, callback) ⇒ AWS.Request
Returns the full details of a channel ban.
-
describeChannelMembership(params = {}, callback) ⇒ AWS.Request
Returns the full details of a user's channel membership.
-
describeChannelMembershipForAppInstanceUser(params = {}, callback) ⇒ AWS.Request
Returns the details of a channel based on the membership of the specified AppInstanceUser.
-
describeChannelModeratedByAppInstanceUser(params = {}, callback) ⇒ AWS.Request
Returns the full details of a channel moderated by the specified AppInstanceUser.
-
describeChannelModerator(params = {}, callback) ⇒ AWS.Request
Returns the full details of a single ChannelModerator.
-
getChannelMessage(params = {}, callback) ⇒ AWS.Request
Gets the full details of a channel message.
-
getMessagingSessionEndpoint(params = {}, callback) ⇒ AWS.Request
The details of the endpoint for the messaging session.
-
listChannelBans(params = {}, callback) ⇒ AWS.Request
Lists all the users banned from a particular channel.
-
listChannelMemberships(params = {}, callback) ⇒ AWS.Request
Lists all channel memberships in a channel.
-
listChannelMembershipsForAppInstanceUser(params = {}, callback) ⇒ AWS.Request
Lists all channels that a particular AppInstanceUser is a part of.
-
listChannelMessages(params = {}, callback) ⇒ AWS.Request
List all the messages in a channel.
-
listChannelModerators(params = {}, callback) ⇒ AWS.Request
Lists all the moderators for a channel.
-
listChannels(params = {}, callback) ⇒ AWS.Request
Lists all Channels created under a single Chime App as a paginated list.
-
listChannelsModeratedByAppInstanceUser(params = {}, callback) ⇒ AWS.Request
A list of the channels moderated by an AppInstanceUser.
-
redactChannelMessage(params = {}, callback) ⇒ AWS.Request
Redacts message content, but not metadata.
-
sendChannelMessage(params = {}, callback) ⇒ AWS.Request
Sends a message to a particular channel that the member is a part of.
-
updateChannel(params = {}, callback) ⇒ AWS.Request
Update a channel's attributes.
-
updateChannelMessage(params = {}, callback) ⇒ AWS.Request
Updates the content of a message.
-
updateChannelReadMarker(params = {}, callback) ⇒ AWS.Request
The details of the time when a user last read messages in a channel.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService
Constructor Details
Property Details
Method Details
batchCreateChannelMembership(params = {}, callback) ⇒ AWS.Request
Adds a specified number of users to a channel.
createChannel(params = {}, callback) ⇒ AWS.Request
Creates a channel to which you can add users and send messages.
Restriction: You can't change a channel's privacy.
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. createChannelBan(params = {}, callback) ⇒ AWS.Request
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.
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. createChannelMembership(params = {}, callback) ⇒ AWS.Request
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.
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. createChannelModerator(params = {}, callback) ⇒ AWS.Request
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.
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. deleteChannel(params = {}, callback) ⇒ AWS.Request
Immediately makes a channel and its memberships inaccessible and marks them for deletion. This is an irreversible process.
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. deleteChannelBan(params = {}, callback) ⇒ AWS.Request
Removes a user from a channel's ban list.
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. deleteChannelMembership(params = {}, callback) ⇒ AWS.Request
Removes a member from a channel.
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. deleteChannelMessage(params = {}, callback) ⇒ AWS.Request
Deletes a channel message. Only admins can perform this action. Deletion makes messages inaccessible immediately. A background process deletes any revisions created by UpdateChannelMessage
.
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. deleteChannelModerator(params = {}, callback) ⇒ AWS.Request
Deletes a channel moderator.
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. describeChannel(params = {}, callback) ⇒ AWS.Request
Returns the full details of a channel in an Amazon Chime AppInstance
.
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. describeChannelBan(params = {}, callback) ⇒ AWS.Request
Returns the full details of a channel ban.
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. describeChannelMembership(params = {}, callback) ⇒ AWS.Request
Returns the full details of a user's channel membership.
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. describeChannelMembershipForAppInstanceUser(params = {}, callback) ⇒ AWS.Request
Returns the details of a channel based on the membership of the specified AppInstanceUser
.
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. describeChannelModeratedByAppInstanceUser(params = {}, callback) ⇒ AWS.Request
Returns the full details of a channel moderated by the specified AppInstanceUser
.
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. describeChannelModerator(params = {}, callback) ⇒ AWS.Request
Returns the full details of a single ChannelModerator.
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. getChannelMessage(params = {}, callback) ⇒ AWS.Request
Gets the full details of a channel message.
AppInstanceUserArn
of the user that makes the API call as the value in the header. getMessagingSessionEndpoint(params = {}, callback) ⇒ AWS.Request
The details of the endpoint for the messaging session.
listChannelBans(params = {}, callback) ⇒ AWS.Request
Lists all the users banned from a particular channel.
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. listChannelMemberships(params = {}, callback) ⇒ AWS.Request
Lists all channel memberships in a channel.
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. listChannelMembershipsForAppInstanceUser(params = {}, callback) ⇒ AWS.Request
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.
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. listChannelMessages(params = {}, callback) ⇒ AWS.Request
List all the messages in a channel. Returns a paginated list of ChannelMessages
. By default, sorted by creation timestamp in descending order.
AppInstanceUserArn
of the user that makes the API call as the value in the header. listChannelModerators(params = {}, callback) ⇒ AWS.Request
Lists all the moderators for a channel.
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. listChannels(params = {}, callback) ⇒ AWS.Request
Lists all Channels created under a single Chime App as a paginated list. You can specify filters to narrow results.
Functionality & 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.
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. listChannelsModeratedByAppInstanceUser(params = {}, callback) ⇒ AWS.Request
A list of the channels moderated by an AppInstanceUser
.
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. redactChannelMessage(params = {}, callback) ⇒ AWS.Request
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.
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. sendChannelMessage(params = {}, callback) ⇒ AWS.Request
Sends a message to a particular channel that the member is a part of.
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. updateChannel(params = {}, callback) ⇒ AWS.Request
Update a channel's attributes.
Restriction: You can't change a channel's privacy.
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.