Skip to main content

channels_moderated_by_app_instance_users

Creates, updates, deletes, gets or lists a channels_moderated_by_app_instance_users resource.

Overview

Namechannels_moderated_by_app_instance_users
TypeResource
Idaws.chime_sdk_messaging.channels_moderated_by_app_instance_users

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
channelsarrayThe moderated channels in the request.
next_tokenstringThe token returned from previous API requests until the number of channels moderated by the user is reached. (pattern: <code>.*</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_channels_moderated_by_app_instance_userselectx-amz-chime-bearer, regionapp-instance-user-arn, max-results, next-tokenA list of the channels moderated by an AppInstanceUser. The x-amz-chime-bearer request header is mandatory. Use the ARN of the AppInstanceUser or AppInstanceBot that makes the API call as the value in the header.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
x-amz-chime-bearerstringThe ARN of the AppInstanceUser or AppInstanceBot that makes the API call.
app-instance-user-arnstringThe ARN of the user or bot in the moderated channel.
max-resultsintegerThe maximum number of channels in the request.
next-tokenstringThe token returned from previous API requests until the number of channels moderated by the user is reached.

SELECT examples

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

SELECT
channels,
next_token
FROM aws.chime_sdk_messaging.channels_moderated_by_app_instance_users
WHERE `x-amz-chime-bearer` = '{{ x-amz-chime-bearer }}' -- required
AND region = '{{ region }}' -- required
AND `app-instance-user-arn` = '{{ app-instance-user-arn }}'
AND `max-results` = '{{ max-results }}'
AND `next-token` = '{{ next-token }}'
;