1import type * as guardduty from "@distilled.cloud/aws/guardduty";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import type { Detector } from "./Detector.ts";
5
6/**
7 * Runtime binding for `guardduty:ListCoverage`.
8 *
9 * Enumerates per-resource coverage details — which EKS clusters, EC2 instances, and ECS clusters report runtime telemetry and why any are unhealthy.
10 * The detector id is injected from the bound {@link Detector}.
11 * Provide the implementation with
12 * `Effect.provide(AWS.GuardDuty.ListCoverageHttp)`.
13 * ### Usage & Coverage
14 * **Example:** List Coverage Details
15 * ```typescript
16 * // init
17 * const listCoverage = yield* AWS.GuardDuty.ListCoverage(detector);
18 *
19 * // runtime
20 * const { Resources } = yield* listCoverage();
21 * ```
22 *
23 * @binding
24 */
25export interface ListCoverage extends Binding.Service<
26 ListCoverage,
27 "AWS.GuardDuty.ListCoverage",
28 (
29 detector: Detector,
30 ) => Effect.Effect<
31 (
32 request?: Omit<guardduty.ListCoverageRequest, "DetectorId">,
33 ) => Effect.Effect<
34 guardduty.ListCoverageResponse,
35 guardduty.ListCoverageError
36 >
37 >
38> {}
39export const ListCoverage = Binding.Service<ListCoverage>(
40 "AWS.GuardDuty.ListCoverage",
41);