Skip to content

ConditionalRule

Source code in docs_src/capo_pinpoint_sms_voice_v2/types/conditional_rule.py
class ConditionalRule(TypedDict, closed=True):
    conditions: (
        "capo_pinpoint_sms_voice_v2.types.field_condition_list.FieldConditionList"
    )
    """<p>The conditions that must all evaluate to true for this rule to match. Conditions are combined with logical AND. Use multiple rules with the same <b>RuleBehavior</b> to express logical OR.</p>"""
    rule_behavior: "capo_pinpoint_sms_voice_v2.types.conditional_field_behavior.ConditionalFieldBehavior"
    """<p>The field behavior that applies when all conditions in this rule match. Valid values are <b>REQUIRED</b>, <b>OPTIONAL</b>, and <b>DISALLOWED</b>.</p>"""
    conditional_validation: NotRequired[
        "capo_pinpoint_sms_voice_v2.types.conditional_validation.ConditionalValidation"
    ]
    """<p>Optional per-rule validation constraints (minimum length, maximum length, regex pattern, allowed select values) that override the field's default validation when this rule matches.</p>"""

conditional_validation instance-attribute

conditional_validation: NotRequired[ConditionalValidation]

Optional per-rule validation constraints (minimum length, maximum length, regex pattern, allowed select values) that override the field's default validation when this rule matches.

conditions instance-attribute

conditions: FieldConditionList

The conditions that must all evaluate to true for this rule to match. Conditions are combined with logical AND. Use multiple rules with the same RuleBehavior to express logical OR.

rule_behavior instance-attribute

rule_behavior: ConditionalFieldBehavior

The field behavior that applies when all conditions in this rule match. Valid values are REQUIRED, OPTIONAL, and DISALLOWED.