| 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 { DescribePackageVersion } from "./DescribePackageVersion.ts"; |
| 5 | |
| 6 | /** HTTP implementation of {@link DescribePackageVersion} over the CodeArtifact API. */ |
| 7 | export const DescribePackageVersionHttp = Layer.effect( |
| 8 | DescribePackageVersion, |
| 9 | makeRepositoryHttpBinding({ |
| 10 | tag: "AWS.CodeArtifact.DescribePackageVersion", |
| 11 | operation: codeartifact.describePackageVersion, |
| 12 | actions: ["codeartifact:DescribePackageVersion"], |
| 13 | resources: packageArns, |
| 14 | }), |
| 15 | ); |