diff --git a/docs/data-sources/rulesets.md b/docs/data-sources/rulesets.md index 19612f2bcb..dc0a8e2276 100644 --- a/docs/data-sources/rulesets.md +++ b/docs/data-sources/rulesets.md @@ -189,9 +189,9 @@ Read-Only: Read-Only: - `check_presence` (List of String) +- `contains` (Map of Set of String) - `exclude_origin` (Boolean) - `include` (List of String) -- `contains` (Map of String to List) diff --git a/docs/resources/ruleset.md b/docs/resources/ruleset.md index d5766a454e..8ff160c4d2 100644 --- a/docs/resources/ruleset.md +++ b/docs/resources/ruleset.md @@ -301,9 +301,9 @@ resource "cloudflare_ruleset" "cache_settings_example" { check_presence = ["habc_t", "hdef_t"] exclude_origin = true contains = { - "accept" = ["image/web", "image/png"] - "accept-encoding = ["br", "zstd"] - "some-header" = ["some-value", "some-other-value"] + "accept" = ["image/web", "image/png"] + "accept-encoding" = ["br", "zstd"] + "some-header" = ["some-value", "some-other-value"] } } cookie { @@ -607,6 +607,7 @@ Optional: Optional: - `check_presence` (Set of String) List of headers to check for presence in the custom key. +- `contains` (Map of Set of String) Dictionary of headers mapping to lists of values to check for presence in the custom key. - `exclude_origin` (Boolean) Exclude the origin header from the custom key. - `include` (Set of String) List of headers to include in the custom key. diff --git a/examples/resources/cloudflare_ruleset/resource.tf b/examples/resources/cloudflare_ruleset/resource.tf index 7e30c6b559..e94b3b5bf1 100644 --- a/examples/resources/cloudflare_ruleset/resource.tf +++ b/examples/resources/cloudflare_ruleset/resource.tf @@ -276,9 +276,9 @@ resource "cloudflare_ruleset" "cache_settings_example" { check_presence = ["habc_t", "hdef_t"] exclude_origin = true contains = { - "accept" = ["image/web", "image/png"] - "accept-encoding = ["br", "zstd"] - "some-header" = ["some-value", "some-other-value"] + "accept" = ["image/web", "image/png"] + "accept-encoding" = ["br", "zstd"] + "some-header" = ["some-value", "some-other-value"] } } cookie {