(apigatewayv2): addRoutes doesn't allow authorizationType: 'AWS_IAM' #15123
Labels
@aws-cdk/aws-apigatewayv2
Related to Amazon API Gateway v2
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p2
The L2 construct doesn't yet support IAM auth, so as a work around I had included the following code:
This allowed me to do an
addRoutes
that looked something like this:...which resulted in CloudFormation like this:
When updating my CDK to the latest this no longer works due to this line of code:
aws-cdk/packages/@aws-cdk/aws-apigatewayv2/lib/http/route.ts
Line 164 in 7ea9e48
Reproduction Steps
Create this class:
and
addRoutes
like this:What did you expect to happen?
Given that
AWS_IAM
is valid for the L1 construct I would expect that the validation would allow it.What actually happened?
An error is thrown, and the stack will not synth
Environment
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: