1import * as codeartifact from "@distilled.cloud/aws/codeartifact";
2import * as Layer from "effect/Layer";
3import { makeRepositoryHttpBinding, packageArns } from "./BindingHttp.ts";
4import { DescribePackageVersion } from "./DescribePackageVersion.ts";
5
6/** HTTP implementation of {@link DescribePackageVersion} over the CodeArtifact API. */
7export 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);