Struct google_runtimeconfig1_beta1::Cardinality[][src]

pub struct Cardinality {
    pub path: Option<String>,
    pub number: Option<i32>,
}

A Cardinality condition for the Waiter resource. A cardinality condition is met when the number of variables under a specified path prefix reaches a predefined number. For example, if you set a Cardinality condition where the path is set to /foo and the number of paths is set to 2, the following variables would meet the condition in a RuntimeConfig resource:

  • /foo/variable1 = "value1"
  • /foo/variable2 = "value2"
  • /bar/variable3 = "value3"

It would not would not satisify the same condition with the number set to 3, however, because there is only 2 paths that start with /foo. Cardinality conditions are recursive; all subtrees under the specific path prefix are counted.

This type is not used in any activity, and only used as part of another schema.

Fields

The root of the variable subtree to monitor. For example, /foo.

The number variables under the path that must exist to meet this condition. Defaults to 1 if not specified.

Trait Implementations

impl Default for Cardinality
[src]

Returns the "default value" for a type. Read more

impl Clone for Cardinality
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Cardinality
[src]

Formats the value using the given formatter. Read more

impl Part for Cardinality
[src]

Auto Trait Implementations

impl Send for Cardinality

impl Sync for Cardinality