GetArtifactUrl
Source:
src/AWS/Amplify/GetArtifactUrl.ts
Runtime binding for amplify:GetArtifactUrl.
Bind an App in the function’s init phase to get a callable that
resolves a pre-signed download URL for a build artifact discovered via
ListArtifacts. Provide the implementation with
Effect.provide(AWS.Amplify.GetArtifactUrlHttp).
Reading Artifacts
Section titled “Reading Artifacts”// init — bind the operation to the appconst listArtifacts = yield* AWS.Amplify.ListArtifacts(app);const getArtifactUrl = yield* AWS.Amplify.GetArtifactUrl(app);
// runtime — resolve a pre-signed URL for the first artifactconst { artifacts } = yield* listArtifacts({ branchName: "main", jobId: "42",});const { artifactUrl } = yield* getArtifactUrl({ artifactId: artifacts[0].artifactId,});