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, )
ttl option is shorthand for the
authorizer_result_ttl_in_seconds property associated with the CloudFormation ApiGateway::Authorizer properties.
Pro tip: Use the <- and -> arrow keys to move back and forward.