aws-cdk icon indicating copy to clipboard operation
aws-cdk copied to clipboard

(apigateway): support for minimumCompressionSize

Open drissamri opened this issue 4 years ago • 7 comments

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

drissamri avatar Nov 15 '22 16:11 drissamri

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 🙂

peterwoodworth avatar Nov 15 '22 20:11 peterwoodworth

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.

pahud avatar Nov 16 '22 19:11 pahud

I would like to take up this issue and contribute the fix. Please let me know if you can assign it. :)

virajmavani avatar Nov 19 '22 02:11 virajmavani

The linked PR looks like it was closed due to inactivity. Is this something I can pick up and finish off?

atchla avatar Dec 27 '22 07:12 atchla

Looks like the issue is yours for the taking @atchla! Go ahead 🙂

peterwoodworth avatar Dec 27 '22 21:12 peterwoodworth

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

github-actions[bot] avatar Mar 01 '23 16:03 github-actions[bot]

I had some things come up and didn't have enough bandwidth to take this task any more. Thanks for finishing it out @pattasai !

atchla avatar Mar 01 '23 20:03 atchla