Skip to content

ConditionalBehavior

Source code in docs_src/capo_pinpoint_sms_voice_v2/types/conditional_behavior.py
class ConditionalBehavior(TypedDict, closed=True):
    rules: "capo_pinpoint_sms_voice_v2.types.conditional_rule_list.ConditionalRuleList"
    """<p>An ordered list of conditional rules. Rules are evaluated top-to-bottom and the first rule whose conditions all evaluate to true determines the field's behavior. Rules whose conditions do not all match are skipped and evaluation continues to the next rule.</p>"""
    default_behavior: "capo_pinpoint_sms_voice_v2.types.conditional_field_behavior.ConditionalFieldBehavior"
    """<p>The field behavior that applies when no conditional rule in <b>Rules</b> matches. Valid values are <b>REQUIRED</b>, <b>OPTIONAL</b>, and <b>DISALLOWED</b>.</p>"""

default_behavior instance-attribute

default_behavior: ConditionalFieldBehavior

The field behavior that applies when no conditional rule in Rules matches. Valid values are REQUIRED, OPTIONAL, and DISALLOWED.

rules instance-attribute

An ordered list of conditional rules. Rules are evaluated top-to-bottom and the first rule whose conditions all evaluate to true determines the field's behavior. Rules whose conditions do not all match are skipped and evaluation continues to the next rule.