Interface LambdaAuthorizerConfig

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
LambdaAuthorizerConfig.Jsii$Proxy

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-06T23:25:04.471Z") @Stability(Stable) public interface LambdaAuthorizerConfig extends software.amazon.jsii.JsiiSerializable
Configuration for Lambda authorization in AppSync.

Note that you can only have a single AWS Lambda function configured to authorize your API.

Example:

 import software.amazon.awscdk.services.lambda.*;
 Function authFunction;
 GraphqlApi.Builder.create(this, "api")
         .name("api")
         .definition(Definition.fromFile(join(__dirname, "appsync.test.graphql")))
         .authorizationConfig(AuthorizationConfig.builder()
                 .defaultAuthorization(AuthorizationMode.builder()
                         .authorizationType(AuthorizationType.LAMBDA)
                         .lambdaAuthorizerConfig(LambdaAuthorizerConfig.builder()
                                 .handler(authFunction)
                                 .build())
                         .build())
                 .build())
         .build();