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