Class CfnTrigger.Builder

java.lang.Object
software.amazon.awscdk.services.glue.CfnTrigger.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTrigger>
Enclosing class:
CfnTrigger

@Stability(Stable) public static final class CfnTrigger.Builder extends Object implements software.amazon.jsii.Builder<CfnTrigger>
A fluent builder for CfnTrigger.
  • Method Details

    • create

      @Stability(Stable) public static CfnTrigger.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnTrigger.Builder.
    • actions

      @Stability(Stable) public CfnTrigger.Builder actions(IResolvable actions)
      The actions initiated by this trigger.

      Parameters:
      actions - The actions initiated by this trigger. This parameter is required.
      Returns:
      this
    • actions

      @Stability(Stable) public CfnTrigger.Builder actions(List<? extends Object> actions)
      The actions initiated by this trigger.

      Parameters:
      actions - The actions initiated by this trigger. This parameter is required.
      Returns:
      this
    • type

      @Stability(Stable) public CfnTrigger.Builder type(String type)
      The type of trigger that this is.

      Parameters:
      type - The type of trigger that this is. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public CfnTrigger.Builder description(String description)
      A description of this trigger.

      Parameters:
      description - A description of this trigger. This parameter is required.
      Returns:
      this
    • eventBatchingCondition

      @Stability(Stable) public CfnTrigger.Builder eventBatchingCondition(IResolvable eventBatchingCondition)
      Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.

      Parameters:
      eventBatchingCondition - Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires. This parameter is required.
      Returns:
      this
    • eventBatchingCondition

      @Stability(Stable) public CfnTrigger.Builder eventBatchingCondition(CfnTrigger.EventBatchingConditionProperty eventBatchingCondition)
      Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.

      Parameters:
      eventBatchingCondition - Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires. This parameter is required.
      Returns:
      this
    • name

      @Stability(Stable) public CfnTrigger.Builder name(String name)
      The name of the trigger.

      Parameters:
      name - The name of the trigger. This parameter is required.
      Returns:
      this
    • predicate

      @Stability(Stable) public CfnTrigger.Builder predicate(IResolvable predicate)
      The predicate of this trigger, which defines when it will fire.

      Parameters:
      predicate - The predicate of this trigger, which defines when it will fire. This parameter is required.
      Returns:
      this
    • predicate

      @Stability(Stable) public CfnTrigger.Builder predicate(CfnTrigger.PredicateProperty predicate)
      The predicate of this trigger, which defines when it will fire.

      Parameters:
      predicate - The predicate of this trigger, which defines when it will fire. This parameter is required.
      Returns:
      this
    • schedule

      @Stability(Stable) public CfnTrigger.Builder schedule(String schedule)
      A cron expression used to specify the schedule.

      For more information, see Time-Based Schedules for Jobs and Crawlers in the AWS Glue Developer Guide . For example, to run something every day at 12:15 UTC, specify cron(15 12 * * ? *) .

      Parameters:
      schedule - A cron expression used to specify the schedule. This parameter is required.
      Returns:
      this
    • startOnCreation

      @Stability(Stable) public CfnTrigger.Builder startOnCreation(Boolean startOnCreation)
      Set to true to start SCHEDULED and CONDITIONAL triggers when created.

      True is not supported for ON_DEMAND triggers.

      Parameters:
      startOnCreation - Set to true to start SCHEDULED and CONDITIONAL triggers when created. This parameter is required.
      Returns:
      this
    • startOnCreation

      @Stability(Stable) public CfnTrigger.Builder startOnCreation(IResolvable startOnCreation)
      Set to true to start SCHEDULED and CONDITIONAL triggers when created.

      True is not supported for ON_DEMAND triggers.

      Parameters:
      startOnCreation - Set to true to start SCHEDULED and CONDITIONAL triggers when created. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnTrigger.Builder tags(Object tags)
      The tags to use with this trigger.

      Parameters:
      tags - The tags to use with this trigger. This parameter is required.
      Returns:
      this
    • workflowName

      @Stability(Stable) public CfnTrigger.Builder workflowName(String workflowName)
      The name of the workflow associated with the trigger.

      Parameters:
      workflowName - The name of the workflow associated with the trigger. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnTrigger build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnTrigger>
      Returns:
      a newly built instance of CfnTrigger.