Skip to content

CancelDeployment

Source: src/AWS/GreengrassV2/CancelDeployment.ts

Runtime binding for greengrass:CancelDeployment.

Halts the bound Deployment’s rollout: core devices that already received it keep running its components, but devices that have not yet applied it never will. The deployment id is injected from the binding — the canonical emergency-stop for a bad rollout. Provide the implementation with Effect.provide(AWS.GreengrassV2.CancelDeploymentHttp).

// init — bind the operation to the deployment
const cancelDeployment = yield* AWS.GreengrassV2.CancelDeployment(deployment);
// runtime
yield* cancelDeployment();