Skip to content

ListPackageVersionAssets

Source: src/AWS/CodeArtifact/ListPackageVersionAssets.ts

Runtime binding for codeartifact:ListPackageVersionAssets.

Lists the assets (files) attached to a package version in the bound repository. Provide the implementation with Effect.provide(AWS.CodeArtifact.ListPackageVersionAssetsHttp).

const listAssets = yield* AWS.CodeArtifact.ListPackageVersionAssets(repo);
const res = yield* listAssets({
format: "generic",
namespace: "my-ns",
package: "my-package",
packageVersion: "1.0.0",
});
console.log(res.assets?.map((a) => a.name));