Skip to content

GetDeployment

Source: src/AWS/AppConfig/GetDeployment.ts

Read an AppConfig deployment’s status from a Lambda (or other AWS runtime) — poll a rollout started with StartDeployment until it reaches a terminal state (COMPLETE, ROLLED_BACK, REVERTED).

Provide AppConfig.GetDeploymentHttp on the hosting function’s Effect to implement the binding.

const getDeployment = yield* AppConfig.GetDeployment(app, env);
const deployment = yield* getDeployment({ DeploymentNumber: 2 });
// deployment.State, deployment.PercentageComplete