api-gateway: Immutable Constructs cannot be used for LambdaProxyIntegration and addRoutes #12201
Labels
guidance
Question that needs advice or information.
needs-triage
This issue or PR still needs to be triaged.
❓ General Issue
The Question
Similar to issue #6885 I've found that for the api-gatewayv2 the higher level constructs don't allow immutable objects. In the below code example "Functuon.fromFunctionArn" is a immutable construct.
The work around I copied form issue 6885 is as below. The commented out lines are the ones that are unsupported immutables.
Environment
Other information
Not sure if I am just to eager using the higher level experimental constructs, but I'd like to know if I am going about this the right way.
The text was updated successfully, but these errors were encountered: