Skip to content

FlushStageAuthorizersCache

Source: src/AWS/ApiGateway/FlushStageAuthorizersCache.ts

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

Bind a Stage inside a function runtime to drop cached authorizer verdicts — e.g. immediately revoking access after a permission change, without waiting out authorizerResultTtl. Provide ApiGateway.FlushStageAuthorizersCacheHttp on the Function effect to implement the binding.

// init
const flushAuthorizers = yield* ApiGateway.FlushStageAuthorizersCache(stage);
// runtime
yield* flushAuthorizers();