Skip to content

Condition

Source code in docs_src/capo_glue/types/condition.py
class Condition(TypedDict, closed=True):
    logical_operator: NotRequired["capo_glue.types.logical_operator.LogicalOperator"]
    """<p>A logical operator.</p>"""
    job_name: NotRequired["capo_glue.types.name_string.NameString"]
    """<p>The name of the job whose <code>JobRuns</code> this condition applies to, and on which this trigger waits.</p>"""
    state: NotRequired["capo_glue.types.job_run_state.JobRunState"]
    """<p>The condition state. Currently, the only job states that a trigger can listen for are <code>SUCCEEDED</code>, <code>STOPPED</code>, <code>FAILED</code>, and <code>TIMEOUT</code>. The only crawler states that a trigger can listen for are <code>SUCCEEDED</code>, <code>FAILED</code>, and <code>CANCELLED</code>.</p>"""
    crawler_name: NotRequired["capo_glue.types.name_string.NameString"]
    """<p>The name of the crawler to which this condition applies.</p>"""
    crawl_state: NotRequired["capo_glue.types.crawl_state.CrawlState"]
    """<p>The state of the crawler to which this condition applies.</p>"""

crawl_state instance-attribute

crawl_state: NotRequired[CrawlState]

The state of the crawler to which this condition applies.

crawler_name instance-attribute

crawler_name: NotRequired[NameString]

The name of the crawler to which this condition applies.

job_name instance-attribute

job_name: NotRequired[NameString]

The name of the job whose JobRuns this condition applies to, and on which this trigger waits.

logical_operator instance-attribute

logical_operator: NotRequired[LogicalOperator]

A logical operator.

state instance-attribute

state: NotRequired[JobRunState]

The condition state. Currently, the only job states that a trigger can listen for are SUCCEEDED, STOPPED, FAILED, and TIMEOUT. The only crawler states that a trigger can listen for are SUCCEEDED, FAILED, and CANCELLED.