question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(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:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
grigorigoldmancommented, May 6, 2021

@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.

0reactions
github-actions[bot]commented, Oct 8, 2021

⚠️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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found