mirror of
https://github.com/floci-io/floci.git
synced 2026-11-30 00:45:17 -05:00
* feat(cloudfront): model AWS managed cache policies Serve the 7 AWS managed cache policies that AWS documents with full settings through GetCachePolicy, GetCachePolicyConfig and ListCachePolicies, by their AWS IDs. ListCachePolicies honors Type=managed|custom. UpdateCachePolicy and DeleteCachePolicy refuse a managed policy with IllegalUpdate and IllegalDelete, as for managed origin request policies. A cache behavior that references a managed policy now forwards what that policy selects. The 4 Amplify-only policies are not modeled: AWS publishes their IDs but not their settings. Closes #6691 * refactor(cloudfront): share the policy list merge and the managed ETag listCachePolicies, listOriginRequestPolicies and listResponseHeadersPolicies now call one helper for the Type check, the merge of custom and managed policies, and the sort by name. Each method keeps its own paging, so the response headers list still rejects an unknown marker. The managed policy ETag is one constant beside the managed policy maps. --------- Co-authored-by: liRONCO11 <7966063+liRONCO11@users.noreply.github.com>