Skip to content

NetworkTrafficRule

Source code in docs_src/capo_securityagent/types/network_traffic_rule.py
class NetworkTrafficRule(TypedDict, closed=True):
    effect: NotRequired[
        "capo_securityagent.types.network_traffic_rule_effect.NetworkTrafficRuleEffect"
    ]
    """<p>The effect of the rule. Valid values are ALLOW and DENY.</p>"""
    pattern: NotRequired["str"]
    """<p>The URL pattern to match for the rule.</p>"""
    network_traffic_rule_type: NotRequired[
        "capo_securityagent.types.network_traffic_rule_type.NetworkTrafficRuleType"
    ]
    """<p>The type of the network traffic rule. Currently, only URL is supported.</p>"""

effect instance-attribute

effect: NotRequired[NetworkTrafficRuleEffect]

The effect of the rule. Valid values are ALLOW and DENY.

network_traffic_rule_type instance-attribute

network_traffic_rule_type: NotRequired[NetworkTrafficRuleType]

The type of the network traffic rule. Currently, only URL is supported.

pattern instance-attribute

pattern: NotRequired[str]

The URL pattern to match for the rule.