stratosphere icon indicating copy to clipboard operation
stratosphere copied to clipboard

Add support for CloudFront ResponseHeadersPolicy

Open joris974 opened this issue 3 years ago • 2 comments

CloudFront supports attaching a ResponseHeadersPolicy to CloudFront Distribution: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_ResponseHeadersPolicy.html

This feature also exists in CloudFormation : https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-responseheaderspolicy.html

Is it possible to add support for creating and attaching ResponseHeadersPolicy in Stratosphere? Thank you!

joris974 avatar Sep 22 '22 16:09 joris974

@joris974 Its likely that this fields are in the current cloudformation specification and this library "just" has to be regenerated to make this feature available.

Since I took over maintainer-ship I was focusing on aeson-2 support. And have yet to start regenerating this library. I'd be happy you beat me to it via a PR.

mbj avatar Sep 22 '22 20:09 mbj

I am not sure how to regenerate the library. The Readme is mentioning a build script but it doesn't exist in the repo anymore.

joris974 avatar Sep 30 '22 16:09 joris974

@joris974 I'm working on a bigger refactoring that will make stratosphere generate one library per AWS service, and during this process also regenerate the library.

The current generator is not "out of the box" compatible with newer resource specs anymore, so needs updates anyway. So sorry this will take a while but from there updates should be much easier.

mbj avatar Jan 12 '23 00:01 mbj

This was addressed via #207 (unreleased) and a major breaking API change I've yet to better document.

mbj avatar Feb 25 '23 05:02 mbj