Skip to content

Commit feadd8c

Browse files
authored
feat(apigateway): add mode property for SpecRestApi (#34198)
### Issue # (if applicable) N/A ### Reason for this change `AWS::ApiGateway::RestApi` has a `mode` property, but the L2 construct for API Gateway (SpecRestApi class) does not currently expose this property. Therefore, I added the `mode` property to the `SpecRestApiProps` interface. ### Description of changes - Introduced an optional `mode` property in `SpecRestApiProps`. - Created an enum class `RestApiMode` to define the possible values for `mode`. This enum includes two values: `merge` and `overwrite`. - Added unit and integration tests. - Updated the README.md for aws-apigateway. ### Describe any new or updated permissions being added No new IAM permissions are introduced. ### Description of how you validated changes - `packages/aws-cdk-lib/aws-apigateway/test/restapi.test.ts` - `packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.spec-restapi.ts` ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license.*
1 parent 72ee4a7 commit feadd8c

File tree

11 files changed

+454
-1217
lines changed

11 files changed

+454
-1217
lines changed

packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.spec-restapi.js.snapshot/apigatewayspecrestapiDefaultTestDeployAssertD16AA485.assets.json

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.spec-restapi.js.snapshot/cdk.out

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.spec-restapi.js.snapshot/integ.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)