Skip to content

ListArtifacts

Source: src/AWS/Amplify/ListArtifacts.ts

Runtime binding for amplify:ListArtifacts.

Bind an App in the function’s init phase to get a callable that lists the artifacts (e.g. test reports) a build job produced. Fetch an individual artifact with GetArtifactUrl. Provide the implementation with Effect.provide(AWS.Amplify.ListArtifactsHttp).

// init — bind the operation to the app
const listArtifacts = yield* AWS.Amplify.ListArtifacts(app);
// runtime
const { artifacts } = yield* listArtifacts({
branchName: "main",
jobId: "42",
});