Predicate

class aws_cdk.aws_glue.Predicate(*, conditions=None, logical=None)

Bases: object

Represents a trigger predicate.

Parameters:
  • conditions (Optional[Sequence[Condition]]) – A list of the conditions that determine when the trigger will fire. Default: - no conditions are provided

  • logical (Optional[PredicateLogical]) – The logical operator to be applied to the conditions. Default: - PredicateLogical.AND if multiple conditions are provided, no logical operator if only one condition

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_glue as glue

# condition: glue.Condition

predicate = glue.Predicate(
    conditions=[condition],
    logical=glue.PredicateLogical.AND
)

Attributes

conditions

A list of the conditions that determine when the trigger will fire.

Default:
  • no conditions are provided

logical

The logical operator to be applied to the conditions.

Default:
  • PredicateLogical.AND if multiple conditions are provided, no logical operator if only one condition