You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're using Smithy TypeScript server code generator for an AWS lambda function, and it's been working greatly. We've recently encountered a use case where we're trying to write an authorizer lambda for the lambda function that is dependent on the HTTP path. We've noticed that the default code generation provides a Mux inside get$OPERATIONHandler and get$SERVICEHandler, and it looks like we can reuse the Mux for implementing our authorizer lambda. Is it possible to export the Mux in a separate function?
Thanks!
The text was updated successfully, but these errors were encountered:
fangyi-zhou
added a commit
to fangyi-zhou/smithy-typescript
that referenced
this issue
Jul 18, 2024
Closessmithy-lang#1342
It's useful to export the multiplexer that is automatically generated
for a service, e.g. for use in anauthorizor lambda. This commit exports
the generated multiplexer that is generated inside the service handler
so that the multiplexer can be used in other packages.
Closessmithy-lang#1342
It's useful to export the multiplexer that is automatically generated
for a service, e.g. for use in anauthorizor lambda. This commit exports
the generated multiplexer that is generated inside the service handler
so that the multiplexer can be used in other packages.
Hello team,
We're using Smithy TypeScript server code generator for an AWS lambda function, and it's been working greatly. We've recently encountered a use case where we're trying to write an authorizer lambda for the lambda function that is dependent on the HTTP path. We've noticed that the default code generation provides a
Mux
insideget$OPERATIONHandler
andget$SERVICEHandler
, and it looks like we can reuse theMux
for implementing our authorizer lambda. Is it possible to export theMux
in a separate function?Thanks!
The text was updated successfully, but these errors were encountered: