(apigateway): support for minimumCompressionSize
Describe the feature
SpecRestApi doesn't support minimumCompressionSize, while RestApi does
Use Case
We generate our API's based off a Open API specification and would like to use compression on our APIs
Proposed Solution
No response
Other Information
No response
Acknowledgements
- [x] I may be able to implement this feature request
- [ ] This feature might incur a breaking change
CDK version used
2.50
Environment details (OS name and version, etc.)
OSX
Thanks for the request. Assuming there's no barrier to adding this prop to the SpecRestApi, this should be pretty simple to add to our SpecRestApi props, and then passing it in here https://github.com/aws/aws-cdk/blob/4c11af6067b35125781aa590bb33c7990078d1ed/packages/%40aws-cdk/aws-apigateway/lib/restapi.ts#L647
Before we support this, you can use escape hatches to make use of the property:
const specRestApi = new SpecRestApi(...);
(specRestApi.node.defaultChild as CfnRestApi).addPropertyOverride('MinimumCompressionSize', x);
I am marking this issue as p2, which means that we are unable to work on this immediately.
We use +1s to help prioritize our work, and are happy to revaluate this issue based on community feedback. You can reach out to the cdk.dev community on Slack to solicit support for reprioritization.
Check out our contributing guide if you're interested in contributing yourself - there's a low chance the team will be able to address this soon but we'd be happy to review a PR 🙂
Hi @drissamri
Are you interested to pick up with the PR against this issue? I would be happy to help you get started. Feel free to reach out to me on cdk.dev slack.
I would like to take up this issue and contribute the fix. Please let me know if you can assign it. :)
The linked PR looks like it was closed due to inactivity. Is this something I can pick up and finish off?
Looks like the issue is yours for the taking @atchla! Go ahead 🙂
⚠️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.
I had some things come up and didn't have enough bandwidth to take this task any more. Thanks for finishing it out @pattasai !