BatchAddChannelRoleToAccessors
Source:
src/AWS/RePostSpace/BatchAddChannelRoleToAccessors.ts
Runtime binding for the BatchAddChannelRoleToAccessors operation (IAM
action repostspace:BatchAddChannelRoleToAccessors on the space ARN).
Grants a channel-level role (ASKER, EXPERT, MODERATOR, or
SUPPORTREQUESTOR) to up to 100 users or groups in a channel of the
bound Space. Per-accessor failures are reported in the output’s
errors list rather than failing the whole call.
Provide the implementation with
Effect.provide(AWS.RePostSpace.BatchAddChannelRoleToAccessorsHttp).
Managing Roles
Section titled “Managing Roles”const addChannelRole = yield* AWS.RePostSpace.BatchAddChannelRoleToAccessors(space);
const result = yield* addChannelRole({ channelId, accessorIds: ["94682c8d-1234-5678-9abc-e001c76e2c44"], channelRole: "EXPERT",});