@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 44 lines 1.61 KB
Raw
1 import type * as identitystore from "@distilled.cloud/aws/identitystore";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Instance } from "./Instance.ts";
5
6 /**
7 * Runtime binding for the `DescribeGroupMembership` operation (IAM action
8 * `identitystore:DescribeGroupMembership`), scoped to one {@link Instance}.
9 *
10 * Reads a group membership (group id + member id) from the bound instance's identity store by `MembershipId`. The instance's
11 * `IdentityStoreId` is injected from the binding. Provide the implementation with
12 * `Effect.provide(AWS.IdentityCenter.DescribeGroupMembershipHttp)`.
13 * ### Querying Group Memberships
14 * **Example:** Read a Membership
15 * ```typescript
16 * // init — bind the operation to the Identity Center instance
17 * const describeGroupMembership = yield* AWS.IdentityCenter.DescribeGroupMembership(instance);
18 *
19 * // runtime
20 * const membership = yield* describeGroupMembership({
21 * MembershipId: membershipId,
22 * });
23 * console.log(membership.GroupId, membership.MemberId);
24 * ```
25 *
26 * @binding
27 */
28 export interface DescribeGroupMembership extends Binding.Service<
29 DescribeGroupMembership,
30 "AWS.IdentityCenter.DescribeGroupMembership",
31 (
32 instance: Instance,
33 ) => Effect.Effect<
34 (
35 request: Omit<identitystore.DescribeGroupMembershipRequest, "IdentityStoreId">,
36 ) => Effect.Effect<
37 identitystore.DescribeGroupMembershipResponse,
38 identitystore.DescribeGroupMembershipError
39 >
40 >
41 > {}
42 export const DescribeGroupMembership = Binding.Service<DescribeGroupMembership>(
43 "AWS.IdentityCenter.DescribeGroupMembership",
44 );