Skip to content

GetResourceSyncStatus

Source: src/AWS/CodeConnections/GetResourceSyncStatus.ts

Runtime binding for codeconnections:GetResourceSyncStatus.

Bind this operation to a SyncConfiguration to read the sync status of its Amazon Web Services resource — the desired state revision and the latest successful/attempted syncs — from inside a function runtime. Provide the implementation with Effect.provide(AWS.CodeConnections.GetResourceSyncStatusHttp).

// init — bind the operation to the sync configuration
const getResourceSyncStatus =
yield* AWS.CodeConnections.GetResourceSyncStatus(sync);
// runtime
const { LatestSync } = yield* getResourceSyncStatus();