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