BatchAddRole
Source:
src/AWS/RePostSpace/BatchAddRole.ts
Runtime binding for the BatchAddRole operation (IAM action
repostspace:BatchAddRole on the space ARN).
Grants a space-level role (EXPERT, MODERATOR, ADMINISTRATOR, or
SUPPORTREQUESTOR) to up to 100 users or groups of the bound
Space in one call. 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.BatchAddRoleHttp).
Managing Roles
Section titled “Managing Roles”const batchAddRole = yield* AWS.RePostSpace.BatchAddRole(space);
const result = yield* batchAddRole({ accessorIds: ["94682c8d-1234-5678-9abc-e001c76e2c44"], role: "EXPERT",});console.log(result.addedAccessorIds, result.errors);