GetRepositorySyncStatus
Source:
src/AWS/CodeConnections/GetRepositorySyncStatus.ts
Runtime binding for codeconnections:GetRepositorySyncStatus.
Bind this operation to a RepositoryLink to read the latest Git
sync attempt for a branch — its status and the sync events that led to
it — from inside a function runtime. Useful for dashboards that surface
whether a stack is in sync with its repository. Provide the
implementation with
Effect.provide(AWS.CodeConnections.GetRepositorySyncStatusHttp).
Monitoring Git Sync
Section titled “Monitoring Git Sync”// init — bind the operation to the repository linkconst getRepositorySyncStatus = yield* AWS.CodeConnections.GetRepositorySyncStatus(link);
// runtimeconst { LatestSync } = yield* getRepositorySyncStatus({ Branch: "main", SyncType: "CFN_STACK_SYNC",});