Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Cloudfront Response Header changes per Nov 4 updates. #1970

Merged

Conversation

glitchindustries
Copy link
Contributor

@glitchindustries glitchindustries marked this pull request as ready for review November 5, 2021 21:18
Copy link
Member

@markpeek markpeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for making this change. There needs to be a couple of easy tweaks done. Also, it would be good to run make fix-black fix-isort test lint just to verify the change before pushing it again. Thanks!

@@ -16,6 +16,9 @@
cloudfront_origin_request_query_string_behavior,
cloudfront_restriction_type,
cloudfront_viewer_protocol_policy,
cloudfront_access_control_allow_methods,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should be alphabetized in the list.

@@ -401,6 +404,130 @@ class OriginRequestPolicy(AWSObject):
}


class AccessControlAllowHeaders(AWSProperty):
props = {
"Items": [(str, True)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The form [(str, True)] should be ([str], True). In other words, the tuple is (property_type, required_bool) and the type is an array of str [str].


class AccessControlAllowMethods(AWSProperty):
props = {
"Items": [(cloudfront_access_control_allow_methods, True)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same change needed.


class AccessControlAllowOrigins(AWSProperty):
props = {
"Items": [(str, True)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same change needed.


class AccessControlExposeHeaders(AWSProperty):
props = {
"Items": [(str, True)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same change needed.

Copy link
Member

@markpeek markpeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@markpeek markpeek merged commit 9b80077 into cloudtools:main Nov 5, 2021
@ntwaddell
Copy link
Contributor

Woohoo!

@markpeek
Copy link
Member

markpeek commented Nov 5, 2021

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants