The best way to control Claude Code, Codex and more from any computer or phone

main
ts 42 lines 1.48 KB
Raw
1 import type * as repostspace from "@distilled.cloud/aws/repostspace";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Space } from "./Space.ts";
5
6 export interface BatchRemoveRoleRequest extends Omit<repostspace.BatchRemoveRoleInput, "spaceId"> {}
7
8 /**
9 * Runtime binding for the `BatchRemoveRole` operation (IAM action
10 * `repostspace:BatchRemoveRole` on the space ARN).
11 *
12 * Removes a space-level role from up to 100 users or groups of the bound
13 * {@link Space} in one call. Per-accessor failures are reported in the
14 * output's `errors` list rather than failing the whole call.
15 * Provide the implementation with
16 * `Effect.provide(AWS.RePostSpace.BatchRemoveRoleHttp)`.
17 * ### Managing Roles
18 * **Example:** Remove the EXPERT role from users
19 * ```typescript
20 * const batchRemoveRole = yield* AWS.RePostSpace.BatchRemoveRole(space);
21 *
22 * const result = yield* batchRemoveRole({
23 * accessorIds: ["94682c8d-1234-5678-9abc-e001c76e2c44"],
24 * role: "EXPERT",
25 * });
26 * console.log(result.removedAccessorIds, result.errors);
27 * ```
28 *
29 * @binding
30 */
31 export interface BatchRemoveRole extends Binding.Service<
32 BatchRemoveRole,
33 "AWS.RePostSpace.BatchRemoveRole",
34 (
35 space: Space,
36 ) => Effect.Effect<
37 (
38 request: BatchRemoveRoleRequest,
39 ) => Effect.Effect<repostspace.BatchRemoveRoleOutput, repostspace.BatchRemoveRoleError>
40 >
41 > {}
42 export const BatchRemoveRole = Binding.Service<BatchRemoveRole>("AWS.RePostSpace.BatchRemoveRole");