1import type * as detective from "@distilled.cloud/aws/detective";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Runtime binding for `detective:BatchGetMembershipDatasources`.
7 *
8 * Reads this account's data source ingest history across the behavior
9 * graphs it is a member of — the member-side view of what each admin's
10 * graph is ingesting from this account.
11 * Provide the implementation with
12 * `Effect.provide(AWS.Detective.BatchGetMembershipDatasourcesHttp)`.
13 * ### Responding to Invitations
14 * **Example:** Inspect Membership Data Sources
15 * ```typescript
16 * // init — account-level binding, no resource argument
17 * const batchGetMembershipDatasources =
18 * yield* AWS.Detective.BatchGetMembershipDatasources();
19 *
20 * // runtime
21 * const { MembershipDatasources } = yield* batchGetMembershipDatasources({
22 * GraphArns: [adminGraphArn],
23 * });
24 * ```
25 *
26 * @binding
27 */
28export interface BatchGetMembershipDatasources extends Binding.Service<
29 BatchGetMembershipDatasources,
30 "AWS.Detective.BatchGetMembershipDatasources",
31 () => Effect.Effect<
32 (
33 request: detective.BatchGetMembershipDatasourcesRequest,
34 ) => Effect.Effect<
35 detective.BatchGetMembershipDatasourcesResponse,
36 detective.BatchGetMembershipDatasourcesError
37 >
38 >
39> {}
40export const BatchGetMembershipDatasources =
41 Binding.Service<BatchGetMembershipDatasources>(
42 "AWS.Detective.BatchGetMembershipDatasources",
43 );