Skip to content

ResetAuthorizersCache

Source: src/AWS/ApiGatewayV2/ResetAuthorizersCache.ts

Runtime binding for resetting a stage’s authorizer result cache (apigateway:DELETE on /apis/{apiId}/stages/{stageName}/cache/authorizers).

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

// init
const resetAuthorizersCache = yield* ApiGatewayV2.ResetAuthorizersCache(stage);
// runtime
yield* resetAuthorizersCache();