Skip to content

GetComponentVersionArtifact

Source: src/AWS/GreengrassV2/GetComponentVersionArtifact.ts

Runtime binding for greengrass:GetComponentVersionArtifact.

Mints a pre-signed download URL for one of the bound ComponentVersion’s artifacts (the same API core devices use to fetch artifacts during installation). The component version ARN is injected from the binding; the caller names the artifact. Provide the implementation with Effect.provide(AWS.GreengrassV2.GetComponentVersionArtifactHttp).

// init — bind the operation to the component version
const getArtifact = yield* AWS.GreengrassV2.GetComponentVersionArtifact(component);
// runtime
const { preSignedUrl } = yield* getArtifact({ artifactName: "installer.zip" });