| 1 | import * as codeartifact from "@distilled.cloud/aws/codeartifact"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeRepositoryHttpBinding, packageArns } from "./BindingHttp.ts"; |
| 4 | import { ListPackageVersions } from "./ListPackageVersions.ts"; |
| 5 | |
| 6 | /** HTTP implementation of {@link ListPackageVersions} over the CodeArtifact API. */ |
| 7 | export const ListPackageVersionsHttp = Layer.effect( |
| 8 | ListPackageVersions, |
| 9 | makeRepositoryHttpBinding({ |
| 10 | tag: "AWS.CodeArtifact.ListPackageVersions", |
| 11 | operation: codeartifact.listPackageVersions, |
| 12 | actions: ["codeartifact:ListPackageVersions"], |
| 13 | resources: packageArns, |
| 14 | }), |
| 15 | ); |