GraphQLApiAdditionalAuthenticationProviderLambdaAuthorizerConfig constructor

const GraphQLApiAdditionalAuthenticationProviderLambdaAuthorizerConfig({
  1. Input<int?>? authorizerResultTtlInSeconds,
  2. required Input<String> authorizerUri,
  3. Input<String?>? identityValidationExpression,
})

Creates a new GraphQLApiAdditionalAuthenticationProviderLambdaAuthorizerConfig. authorizerResultTtlInSeconds Number of seconds a response should be cached for. The default is 5 minutes (300 seconds). The Lambda function can override this by returning a ttlOverride key in its response. A value of 0 disables caching of responses. Minimum value of 0. Maximum value of 3600. authorizerUri ARN of the Lambda function to be called for authorization. Note: This Lambda function must have a resource-based policy assigned to it, to allow lambda:InvokeFunction from service principal appsync.amazonaws.com. identityValidationExpression Regular expression for validation of tokens before the Lambda function is called.

Implementation

const GraphQLApiAdditionalAuthenticationProviderLambdaAuthorizerConfig({
  this.authorizerResultTtlInSeconds,
  required this.authorizerUri,
  this.identityValidationExpression,
});