Skip to content
TypeScript
591 B
Raw Blame
import * as codeartifact from "@distilled.cloud/aws/codeartifact";
import * as Layer from "effect/Layer";
import { makeRepositoryHttpBinding, packageArns } from "./BindingHttp.ts";
import { DescribePackage } from "./DescribePackage.ts";

/** HTTP implementation of {@link DescribePackage} over the CodeArtifact API. */
export const DescribePackageHttp = Layer.effect(
  DescribePackage,
  makeRepositoryHttpBinding({
    tag: "AWS.CodeArtifact.DescribePackage",
    operation: codeartifact.describePackage,
    actions: ["codeartifact:DescribePackage"],
    resources: packageArns,
  }),
);