Skip to main content

sub_channels

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

Overview

Namesub_channels
TypeResource
Idaws.chime_sdk_messaging.sub_channels

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
channel_arnstringThe ARN of elastic channel. (pattern: <code>arn:[a-z0-9-.]{1,63}:[a-z0-9-.]{0,63}:[a-z0-9-.]{0,63}:[a-z0-9-.]{0,63}:[^/].{0,1023}</code>)
next_tokenstringThe token passed by previous API calls until all requested sub-channels are returned. (pattern: <code>.*</code>)
sub_channelsarrayThe information about each sub-channel.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_sub_channelsselectchannel_arn, x-amz-chime-bearer, regionmax-results, next-tokenLists all the SubChannels in an elastic channel when given a channel ID. Available only to the app instance admins and channel moderators of elastic channels.

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
channel_arnstringThe ARN of elastic channel.
regionstringAWS region (default: us-east-1)
x-amz-chime-bearerstringThe AppInstanceUserArn of the user making the API call.
max-resultsintegerThe maximum number of sub-channels that you want to return.
next-tokenstringThe token passed by previous API calls until all requested sub-channels are returned.

SELECT examples

Lists all the SubChannels in an elastic channel when given a channel ID. Available only to the app instance admins and channel moderators of elastic channels.

SELECT
channel_arn,
next_token,
sub_channels
FROM aws.chime_sdk_messaging.sub_channels
WHERE channel_arn = '{{ channel_arn }}' -- required
AND `x-amz-chime-bearer` = '{{ x-amz-chime-bearer }}' -- required
AND region = '{{ region }}' -- required
AND `max-results` = '{{ max-results }}'
AND `next-token` = '{{ next-token }}'
;