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).
Monitoring Deployments
Section titled “Monitoring Deployments”// init — bind the operation to the deploymentconst getDeployment = yield* AWS.GreengrassV2.GetDeployment(deployment);
// runtimeconst detail = yield* getDeployment();yield* Effect.log(`rollout is ${detail.deploymentStatus}`);