Skip to content

GetDeployment

Source: src/AWS/GreengrassV2/GetDeployment.ts

Runtime binding for greengrass:GetDeployment.

Reads the bound Deployment’s full detail — status (ACTIVE, COMPLETED, CANCELED, FAILED), component specs, IoT job linkage, and whether it is still the latest revision for its target — so a function can monitor a rollout. The deployment id is injected from the binding. Provide the implementation with Effect.provide(AWS.GreengrassV2.GetDeploymentHttp).

// init — bind the operation to the deployment
const getDeployment = yield* AWS.GreengrassV2.GetDeployment(deployment);
// runtime
const detail = yield* getDeployment();
yield* Effect.log(`rollout is ${detail.deploymentStatus}`);