Skip to content

ResponseAction

Source code in docs_src/capo_shield/types/response_action.py
class ResponseAction(TypedDict, closed=True):
    block: NotRequired["capo_shield.types.block_action.BlockAction"]
    """<p>Specifies that Shield Advanced should configure its WAF rules with the WAF <code>Block</code> action. </p> <p>You must specify exactly one action, either <code>Block</code> or <code>Count</code>.</p>"""
    count: NotRequired["capo_shield.types.count_action.CountAction"]
    """<p>Specifies that Shield Advanced should configure its WAF rules with the WAF <code>Count</code> action. </p> <p>You must specify exactly one action, either <code>Block</code> or <code>Count</code>.</p>"""

block instance-attribute

block: NotRequired[BlockAction]

Specifies that Shield Advanced should configure its WAF rules with the WAF Block action.

You must specify exactly one action, either Block or Count.

count instance-attribute

count: NotRequired[CountAction]

Specifies that Shield Advanced should configure its WAF rules with the WAF Count action.

You must specify exactly one action, either Block or Count.