Skip to content

BatchRemoveChannelRoleFromAccessors

Source: src/AWS/RePostSpace/BatchRemoveChannelRoleFromAccessors.ts

Runtime binding for the BatchRemoveChannelRoleFromAccessors operation (IAM action repostspace:BatchRemoveChannelRoleFromAccessors on the space ARN).

Removes a channel-level role from 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.BatchRemoveChannelRoleFromAccessorsHttp).

const removeChannelRole =
yield* AWS.RePostSpace.BatchRemoveChannelRoleFromAccessors(space);
const result = yield* removeChannelRole({
channelId,
accessorIds: ["94682c8d-1234-5678-9abc-e001c76e2c44"],
channelRole: "EXPERT",
});