(aws-apigateway): RestApi does not support Mode attribute
See original GitHub issue❓ General Issue
According to AWS docs https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-restapi.html#cfn-apigateway-restapi-mode
For REST APIs created before March 29, 2021, the default is overwrite. Otherwise, the default value is merge.
The Question
I am using SpecRestApi
class to define my API Gateway resource but there does not appear to be a mode
attribute that allows me to change the default setting of merge
to overwrite
.
Environment
- CDK CLI Version: 1.101.0
- Module Version: 1.91.0
- Node.js Version: v16.0.0
- OS: macOS Catalina
- Language (Version): TypeScript (3.9.9)
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
AWS::ApiGateway::RestApi - AWS CloudFormation
The Amazon Simple Storage Service (Amazon S3) location that points to an OpenAPI file, which defines a set of RESTful APIs in JSON...
Read more >aws_api_gateway_rest_api | Resources | hashicorp/aws
The REST API can be configured via importing an OpenAPI specification in the body ... Resource import does not currently support the body...
Read more >aws.apigateway.RestApi - Pulumi
Documentation for the aws.apigateway.RestApi resource with examples, input properties, output properties, lookup functions, and supporting types.
Read more >APIGateway — Boto3 Docs 1.26.36 documentation
For a TOKEN or REQUEST authorizer, this is not defined. ... the URI is of the form arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{ ...
Read more >AWS API Gateway (REST) - Request Validation passes even ...
So with swagger v2 and openapiv3 specs the default behavior is to accept all additional properties that your spec does not define.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@gsdwait Yep that works.
@peterwoodworth The only other place where I saw a reference to
mode
was in the api specs, see https://docs.aws.amazon.com/cli/latest/reference/apigateway/put-rest-api.html.⚠️COMMENT VISIBILITY WARNING⚠️
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.