LambdaAuthorizerConfig
A LambdaAuthorizerConfig
specifies how to authorize AppSync API access when using the AWS_LAMBDA
authorizer mode. Be aware that an AppSync API can have only one Lambda authorizer configured at a time.
Types
Properties
The number of seconds a response should be cached for. The default is 0 seconds, which disables caching. If you don't specify a value for authorizerResultTtlInSeconds
, the default value is used. The maximum value is one hour (3600 seconds). The Lambda function can override this by returning a ttlOverride
key in its response.
The Amazon Resource Name (ARN) of the Lambda function to be called for authorization. This can be a standard Lambda ARN, a version ARN (.../v3
), or an alias ARN.
A regular expression for validation of tokens before the Lambda function is called.