diff --git a/docs/resources/conformity_custom_rule.md b/docs/resources/conformity_custom_rule.md index bcc6d02..498e021 100644 --- a/docs/resources/conformity_custom_rule.md +++ b/docs/resources/conformity_custom_rule.md @@ -99,8 +99,11 @@ A `condition` block supports the following * `path` (Optional) Secondary JSONPath query to apply to further evaluate nested data. * `value` (Required) The expected value from the JSONPath query. This can be a string, number, boolean, or object. -~> **NOTE:** If the `value` is either a number, boolean, or object. It **must** be encoded using the built-in `jsonencode` function. e.g. `value = jsonencode(true)`, `value=jsonencode({"days"=20,"operator"="within"})` +~> **NOTE:** If the `value` is either a number, boolean, or object. It **must** be encoded using the built-in `jsonencode` function. e.g. +* Number: `value = jsonencode(86400)` +* Boolean: `value = jsonencode(true)` +* Object: `value=jsonencode({"days"=20,"operator"="within"})` -A `value` block can be defined but must follow the structure below and encoded +A `value` block can be defined using the built-in Terraform `jsonencode()` function but must follow the structure below * `days` (Required) The number of days to compare against. * `operator` (Required) Date comparison operator, e.g. "within", "olderThan"