Commit 0e66e47
authored
feat(cloudfront): add Managed-HostHeaderOnly origin request policy (#38236)
### Issue # (if applicable)
Closes #38234.
### Reason for this change
CloudFront introduces a managed origin request policy `Managed-HostHeaderOnly`.
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.html#managed-origin-request-policy-host-header-only
This policy includes only the Host header from the origin request. It doesn't include any query strings or cookies.
### Description of changes
- Added a managed origin request policy `OriginRequestPolicy.HOST_HEADER_ONLY`.
### Describe any new or updated permissions being added
N/A
### Description of how you validated changes
- Added a unit test to validate the policy id is correct.
- Updated an integ test to validate managed policies are deployed successfully.
### Checklist
- [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*1 parent 05c27e0 commit 0e66e47
13 files changed
Lines changed: 1326 additions & 549 deletions
File tree
- packages
- @aws-cdk-testing/framework-integ/test/aws-cloudfront/test
- integ.distribution-policies.js.snapshot
- aws-cdk-lib/aws-cloudfront
- lib
- test
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments