ApiRoute
Defined in: packages/core/src/types/lambda.ts:210
One route within a multi-route REST (v1) API lambda (Phase 3I).
path is ABSOLUTE (“/auth/login”) when the config has no basePath, or
RELATIVE (“login”, no leading slash) when basePath is set — see D9. The
effective path is composed BEFORE logical-ID derivation, so
basePath:"/auth" + path:"login" and absolute path:"/auth/login" yield
the identical CloudFormation logical ID.
Properties
Section titled “Properties”apiKey?
Section titled “apiKey?”
optionalapiKey?:boolean
Defined in: packages/core/src/types/lambda.ts:220
Require an API key on this route. route → config → off. Orthogonal to
authorizer — authorizer:"none" + apiKey:true is pure API-key protection.
authorizer?
Section titled “authorizer?”
optionalauthorizer?:LambdaAuthorizer
Defined in: packages/core/src/types/lambda.ts:215
Per-route override; falls back to config-level authorizer, then kind default (“cognito”).
method
Section titled “method”method:
HttpMethod
Defined in: packages/core/src/types/lambda.ts:211
path:
string
Defined in: packages/core/src/types/lambda.ts:213
Absolute (“/auth/login”) OR relative (“login”) when basePath is set — see D9.
© 2026 Axis Tech. Powered by axis-tech.co.