Skip to content

ListPackages

Source: src/AWS/CodeArtifact/ListPackages.ts

Runtime binding for codeartifact:ListPackages.

Lists the packages stored in the bound repository. Provide the implementation with Effect.provide(AWS.CodeArtifact.ListPackagesHttp).

const listPackages = yield* AWS.CodeArtifact.ListPackages(repo);
const res = yield* listPackages({ packagePrefix: "my-" });
for (const pkg of res.packages ?? []) console.log(pkg.package);