Skip to content

ResetConnectorMetadataCache

Source: src/AWS/AppFlow/ResetConnectorMetadataCache.ts

Runtime binding for appflow:ResetConnectorMetadataCache.

Bind this operation to a ConnectorProfile in the function’s init phase to get a callable that clears AppFlow’s cached entity metadata for the profile, so the next ListConnectorEntities / DescribeConnectorEntity call fetches fresh metadata from the connected application. The connector profile name is injected automatically and appflow:ResetConnectorMetadataCache is granted on the profile. Provide the implementation with Effect.provide(AWS.AppFlow.ResetConnectorMetadataCacheHttp).

// init — bind the operation to the connector profile
const resetConnectorMetadataCache =
yield* AWS.AppFlow.ResetConnectorMetadataCache(profile);
// runtime — drop the cache before re-listing entities
yield* resetConnectorMetadataCache();
const fresh = yield* listConnectorEntities();