import type * as securitylake from "@distilled.cloud/aws/securitylake";
import * as Binding from "alchemy/Binding";
import type * as Effect from "effect/Effect";
import type { DataLake } from "./DataLake.ts";
/**
* Runtime binding for `securitylake:GetDataLakeSources`.
*
* Returns a snapshot of which log sources are collecting (per account and
* source, with `COLLECTING` / `MISCONFIGURED` / `NOT_COLLECTING` statuses) so
* a monitoring Function can verify ingestion health. Bind the account's
* {@link DataLake}.
* Provide the implementation with
* `Effect.provide(AWS.SecurityLake.GetDataLakeSourcesHttp)`.
* ### Monitoring the data lake
* **Example:** Check source collection status
* ```typescript
* // init
* const getSources = yield* AWS.SecurityLake.GetDataLakeSources(lake);
*
* // runtime
* const { dataLakeSources } = yield* getSources();
* ```
*
* @binding
*/
export interface GetDataLakeSources extends Binding.Service<
GetDataLakeSources,
"AWS.SecurityLake.GetDataLakeSources",
(
lake: DataLake,
) => Effect.Effect<
(
request?: securitylake.GetDataLakeSourcesRequest,
) => Effect.Effect<
securitylake.GetDataLakeSourcesResponse,
securitylake.GetDataLakeSourcesError
>
>
> {}
export const GetDataLakeSources = Binding.Service<GetDataLakeSources>(
"AWS.SecurityLake.GetDataLakeSources",
);