TriggerArgs constructor

const TriggerArgs({
  1. required Input<List<TriggerAction>> actions,
  2. Input<String?>? description,
  3. Input<bool?>? enabled,
  4. Input<List<TriggerEventBatchingCondition>?>? eventBatchingConditions,
  5. Input<String?>? name,
  6. Input<TriggerPredicate?>? predicate,
  7. Input<String?>? region,
  8. Input<String?>? schedule,
  9. Input<bool?>? startOnCreation,
  10. Input<Map<String, String>?>? tags,
  11. required Input<String> type,
  12. Input<String?>? workflowName,
})

Creates a new TriggerArgs. actions List of actions initiated by this trigger when it fires. See Actions Below. description A description of the new trigger. enabled Start the trigger. Defaults to true. eventBatchingConditions Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires. See Event Batching Condition. name The name of the trigger. predicate A predicate to specify when the new trigger should fire. Required when trigger type is CONDITIONAL. See Predicate Below. region Region where this resource will be managed. Defaults to the Region set in the provider configuration. schedule A cron expression used to specify the schedule. Time-Based Schedules for Jobs and Crawlers startOnCreation Set to true to start SCHEDULED and CONDITIONAL triggers when created. True is not supported for ON_DEMAND triggers. tags Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level. type The type of trigger. Valid values are CONDITIONAL, EVENT, ON_DEMAND, and SCHEDULED. workflowName A workflow to which the trigger should be associated to. Every workflow graph (DAG) needs a starting trigger (ON_DEMAND or SCHEDULED type) and can contain multiple additional CONDITIONAL triggers.

Implementation

const TriggerArgs({
  required this.actions,
  this.description,
  this.enabled,
  this.eventBatchingConditions,
  this.name,
  this.predicate,
  this.region,
  this.schedule,
  this.startOnCreation,
  this.tags,
  required this.type,
  this.workflowName,
});