ConditionalTriggerOptions
- class aws_cdk.aws_glue.ConditionalTriggerOptions(*, actions, description=None, name=None, start_on_creation=None, predicate)
Bases:
StartableTriggerOptionsProperties for configuring a Condition (Predicate) based Glue Trigger.
- Parameters:
actions (
Sequence[Action]) – The actions initiated by this trigger.description (
Optional[str]) – A description for the trigger. Default: - no descriptionname (
Optional[str]) – A name for the trigger. Default: - no name is providedstart_on_creation (
Optional[bool]) – Whether to start the trigger on creation or not. Default: - falsepredicate (
Union[Predicate,Dict[str,Any]]) – The predicate for the trigger.
- 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 # action: glue.Action # condition: glue.Condition conditional_trigger_options = glue.ConditionalTriggerOptions( actions=[action], predicate=glue.Predicate( conditions=[condition], logical=glue.PredicateLogical.AND ), # the properties below are optional description="description", name="name", start_on_creation=False )
Attributes
- actions
The actions initiated by this trigger.
- description
A description for the trigger.
- Default:
no description
- name
A name for the trigger.
- Default:
no name is provided
- predicate
The predicate for the trigger.
- start_on_creation
Whether to start the trigger on creation or not.
- Default:
false