Skip to content

FlushStageCache

Source: src/AWS/ApiGateway/FlushStageCache.ts

Runtime binding for flushing a stage’s response cache (apigateway:DELETE on /restapis/{id}/stages/{name}/cache/data).

Bind a Stage inside a function runtime to invalidate cached responses after a content update. Provide ApiGateway.FlushStageCacheHttp on the Function effect to implement the binding.

// init
const flushStageCache = yield* ApiGateway.FlushStageCache(stage);
// runtime
yield* flushStageCache();