(aws-cdk-lib): aws-sam.CfnApi does not support auth.ResourcePolicy and other options #31518
Labels
aws-cdk-lib
Related to the aws-cdk-lib package
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
needs-cfn
This issue is waiting on changes to CloudFormation before it can be addressed.
p2
Describe the bug
AWS::Serverless::Api
supports various auth methods.https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-property-api-apiauth.html
However, only
AddDefaultAuthorizerToCorsPreflight
,Authorizers
, andDefaultAuthorizer
are supported.Others such as
ResourcePolicy
andApiKeyRequired
are not supported../node_modules/aws-cdk-lib/aws-sam/lib/sam.generated.d.ts
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
It should cover all supported options.
Current Behavior
only
AddDefaultAuthorizerToCorsPreflight
,Authorizers
, andDefaultAuthorizer
are supported.Reproduction Steps
See above
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.159.1 (build c66f4e3)
Framework Version
No response
Node.js Version
20
OS
ubuntu
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: