Repository: brooklyn-docs Updated Branches: refs/heads/master 2b06e9605 -> 1730d7262
document add'l constraints Project: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/repo Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/commit/43ae2e94 Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/tree/43ae2e94 Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/diff/43ae2e94 Branch: refs/heads/master Commit: 43ae2e947bff5bb659b66714fb361895e91f6b73 Parents: 97515cb Author: Alex Heneveld <alex.henev...@cloudsoftcorp.com> Authored: Mon Sep 24 10:49:12 2018 +0100 Committer: Alex Heneveld <alex.henev...@cloudsoftcorp.com> Committed: Mon Sep 24 10:49:12 2018 +0100 ---------------------------------------------------------------------- guide/blueprints/entity-configuration.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/brooklyn-docs/blob/43ae2e94/guide/blueprints/entity-configuration.md ---------------------------------------------------------------------- diff --git a/guide/blueprints/entity-configuration.md b/guide/blueprints/entity-configuration.md index 1bd1db1..e3b4434 100644 --- a/guide/blueprints/entity-configuration.md +++ b/guide/blueprints/entity-configuration.md @@ -55,13 +55,19 @@ and for a complete reference on the syntax of `brooklyn.parameters` see that sec #### Config Key Constraints -The config keys in the `brooklyn.parameters` can also have constraints defined, for what values +The config keys in the `brooklyn.parameters` can also have a list of constraints defined, for what values are valid. If more than one constraint is defined, then they must all be satisfied. The constraints can be any of: -* `required`: deployment will fail if no value is supplied for this config key. -* `regex: ...`: the value will be compared against the given regular expression. -* A predicate, declared using the DSL `$brooklyn:object`. +* `required`: deployment will fail if no value is supplied for this config key +* `regex: <pattern>`: the value must match the regular expression `<pattern>` +* `glob: <pattern>`: the value must match the bash-style wildcard glob `<pattern>` +* `urlExists: <url>`: the server must be able to resolve and access the URL `<url>` +* `forbiddenIf: <key>`: setting a value is disallowed if the config key `<key>` has a value set +* `forbiddenUnless: <key>`: setting a value is disallowed if the config key `<key>` does not have a value set +* `requiredIf: <key>`: a value is required if the config key `<key>` has a value set +* `requiredUnless: <key>`: a value is required if the config key `<key>` does not have a value set +* Any java `Predicate`, declared using the DSL `$brooklyn:object`. This is illustrated in the example below: