Authorizer Caching

Important: These docs are for the outdated Jets 5 versions and below. For the latest Jets docs: docs.rubyonjets.com

You can cache the authorizer with the ttl convenience property. This means the Authorizer lambda function will not be called again until the ttl expires. Example:

authorizer(
  name: "MainProtect",  # required
  ttl: 60,
)

The ttl option is shorthand for the authorizer_result_ttl_in_seconds property associated with the CloudFormation ApiGateway::Authorizer properties.