CancelReplay
Source:
src/AWS/EventBridge/CancelReplay.ts
Cancels a running event replay (events:CancelReplay).
Bind this operation inside a function runtime to abort a replay started
with StartReplay. Cancelling a replay that already completed fails with
the typed IllegalStatusException. Provide the CancelReplayHttp layer
on the Function to satisfy the binding.
Replaying Events
Section titled “Replaying Events”// init — bind the operation (provide AWS.EventBridge.CancelReplayHttp on the Function)const cancelReplay = yield* AWS.EventBridge.CancelReplay();
// runtime — abort the replayyield* cancelReplay({ ReplayName: "backfill-2026-07-14" });