Skip to content

Commit

Permalink
Add all valid origin_request_policy config behaviors to validators (#…
Browse files Browse the repository at this point in the history
…2163)

Co-authored-by: Taylor Benavides <[email protected]>
  • Loading branch information
tscott32 and Taylor Benavides authored Aug 9, 2023
1 parent 109285b commit 2c72a2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions troposphere/validators/cloudfront.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def cloudfront_origin_request_cookie_behavior(cookie_behavior):
"""
Property: OriginRequestCookiesConfig.CookieBehavior
"""
valid_values = ["none", "whitelist", "all"]
valid_values = ["none", "whitelist", "all", "allExcept"]
if cookie_behavior not in valid_values:
raise ValueError(
'CookieBehavior must be one of: "%s"' % (", ".join(valid_values))
Expand All @@ -128,7 +128,7 @@ def cloudfront_origin_request_header_behavior(header_behavior):
"""
Property: OriginRequestHeadersConfig.HeaderBehavior
"""
valid_values = ["none", "whitelist", "allViewer", "allViewerAndWhitelistCloudFront"]
valid_values = ["none", "whitelist", "allViewer", "allViewerAndWhitelistCloudFront", "allExcept"]
if header_behavior not in valid_values:
raise ValueError(
'HeaderBehavior must be one of: "%s"' % (", ".join(valid_values))
Expand All @@ -140,7 +140,7 @@ def cloudfront_origin_request_query_string_behavior(query_string_behavior):
"""
Property: OriginRequestQueryStringsConfig.QueryStringBehavior
"""
valid_values = ["none", "whitelist", "all"]
valid_values = ["none", "whitelist", "all", "allExcept"]
if query_string_behavior not in valid_values:
raise ValueError(
'QueryStringBehavior must be one of: "%s"' % (", ".join(valid_values))
Expand Down

0 comments on commit 2c72a2c

Please sign in to comment.