- httpApiAuthorizer<D, Configuration, Service, Profile, Path, Query, Headers, Context, Security>(definition: D & RequestAuthorizerHandler<Configuration, Service, Profile, Path, Query, Headers, Context, Security, http>, __namedParameters?: { _kernel?: <Configuration, Service, Profile, Path, Query, Headers, Context, Security, GV>(handler: RequestAuthorizerHandler<Configuration, Service, Profile, Path, Query, Headers, Context, Security, GV>, event: APIGatewayRequestAuthorizerEventV2Schema | APIGatewayRequestAuthorizerEventSchema, context: LambdaContext<Configuration, Service, Profile>) => Promise<Try<APIGatewayIAMAuthorizerResult | APIGatewaySimpleAuthorizerResult>> }): D & EventHandlerFn<Configuration, Service, Profile>
Type parameters
- D
- Configuration = undefined
- Service: undefined | DefaultServices = undefined
- Profile: MaybeGenericParser = undefined
- Path: MaybeGenericParser = undefined
- Query: MaybeGenericParser = undefined
- Headers: MaybeGenericParser = undefined
- Context: MaybeGenericParser = undefined
- Security: undefined | SecuritySchemes = undefined
Parameters
definition: D & RequestAuthorizerHandler<Configuration, Service, Profile, Path, Query, Headers, Context, Security, http>
__namedParameters: { _kernel?: <Configuration, Service, Profile, Path, Query, Headers, Context, Security, GV>(handler: RequestAuthorizerHandler<Configuration, Service, Profile, Path, Query, Headers, Context, Security, GV>, event: APIGatewayRequestAuthorizerEventV2Schema | APIGatewayRequestAuthorizerEventSchema, context: LambdaContext<Configuration, Service, Profile>) => Promise<Try<APIGatewayIAMAuthorizerResult | APIGatewaySimpleAuthorizerResult>> } = {}
optional_kernel: <Configuration, Service, Profile, Path, Query, Headers, Context, Security, GV>(handler: RequestAuthorizerHandler<Configuration, Service, Profile, Path, Query, Headers, Context, Security, GV>, event: APIGatewayRequestAuthorizerEventV2Schema | APIGatewayRequestAuthorizerEventSchema, context: LambdaContext<Configuration, Service, Profile>) => Promise<Try<APIGatewayIAMAuthorizerResult | APIGatewaySimpleAuthorizerResult>> = handleAuthorizerEvent
Returns D & EventHandlerFn<Configuration, Service, Profile>