Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cloudfront): add validations on ResponseHeadersCorsBehavior.acces…
…sControlAllowMethods (#32769) ### Issue # (if applicable) N/A ### Reason for this change There is no description about the allowed values on `ResponseHeadersPolicy`'s `corsBehavior.accessControlAllowMethods`. The wildcard (any methods allowed) is `ALL` instead of `*` (wildcard for headers). This PR adds the description and validations on it. ### Description of changes Added the description of the allowed values on `ResponseHeadersCorsBehavior.accessControlAllowMethods`. Added validations: - exactly `['ALL']` which means any http methods are allowed - whether includes only allowed method names ### Describe any new or updated permissions being added Nothing ### Description of how you validated changes Added unit tests ### 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*
- Loading branch information