| 1 | import * as guardduty from "@distilled.cloud/aws/guardduty"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeGuardDutyDetectorHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { ListCoverage } from "./ListCoverage.ts"; |
| 5 | |
| 6 | export 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 | ); |