OnDemandTriggerOptions
- class aws_cdk.aws_glue_alpha.OnDemandTriggerOptions(*, actions, description=None, name=None)
Bases:
TriggerOptions(experimental) Properties for configuring an on-demand Glue Trigger.
- Parameters:
actions (
Sequence[Union[Action,Dict[str,Any]]]) – (experimental) The actions initiated by this trigger.description (
Optional[str]) – (experimental) A description for the trigger. Default: - no descriptionname (
Optional[str]) – (experimental) A name for the trigger. Default: - no name is provided
- Stability:
experimental
- ExampleMetadata:
infused
Example:
import aws_cdk as cdk import aws_cdk.aws_iam as iam # stack: cdk.Stack # role: iam.IRole # script: glue.Code # Create a job to run from the workflow job = glue.PySparkEtlJob(stack, "Job", role=role, script=script) # Create a workflow and add a trigger that runs the job workflow = glue.Workflow(stack, "Workflow") workflow.add_on_demand_trigger("OnDemandTrigger", actions=[glue.Action(job=job)] )
Attributes
- actions
(experimental) The actions initiated by this trigger.
- Stability:
experimental
- description
(experimental) A description for the trigger.
- Default:
no description
- Stability:
experimental
- name
(experimental) A name for the trigger.
- Default:
no name is provided
- Stability:
experimental