1import * as guardduty from "@distilled.cloud/aws/guardduty";
2import * as Layer from "effect/Layer";
3import { makeGuardDutyDetectorHttpBinding } from "./BindingHttp.ts";
4import { GetCoverageStatistics } from "./GetCoverageStatistics.ts";
5
6export const GetCoverageStatisticsHttp = Layer.effect(
7 GetCoverageStatistics,
8 makeGuardDutyDetectorHttpBinding({
9 tag: "AWS.GuardDuty.GetCoverageStatistics",
10 operation: guardduty.getCoverageStatistics,
11 actions: ["guardduty:GetCoverageStatistics"],
12 // One of the two GuardDuty actions that supports resource-level
13 // permissions on the detector ARN.
14 resourceLevel: true,
15 }),
16);