Skip to content

GetRepositoryEndpoint

Source: src/AWS/CodeArtifact/GetRepositoryEndpoint.ts

Runtime binding for codeartifact:GetRepositoryEndpoint.

Resolves the URL package managers (npm, pip, maven, …) use to talk to the bound repository for a given package format. Provide the implementation with Effect.provide(AWS.CodeArtifact.GetRepositoryEndpointHttp).

const getEndpoint = yield* AWS.CodeArtifact.GetRepositoryEndpoint(repo);
const res = yield* getEndpoint({ format: "npm" });
console.log(res.repositoryEndpoint);