class Aws::Glue::Types::CreateTriggerRequest
@note When making an API call, you may pass CreateTriggerRequest
data as a hash: { name: "NameString", # required workflow_name: "NameString", type: "SCHEDULED", # required, accepts SCHEDULED, CONDITIONAL, ON_DEMAND, EVENT schedule: "GenericString", predicate: { logical: "AND", # accepts AND, ANY conditions: [ { logical_operator: "EQUALS", # accepts EQUALS job_name: "NameString", state: "STARTING", # accepts STARTING, RUNNING, STOPPING, STOPPED, SUCCEEDED, FAILED, TIMEOUT crawler_name: "NameString", crawl_state: "RUNNING", # accepts RUNNING, CANCELLING, CANCELLED, SUCCEEDED, FAILED }, ], }, actions: [ # required { job_name: "NameString", arguments: { "GenericString" => "GenericString", }, timeout: 1, security_configuration: "NameString", notification_property: { notify_delay_after: 1, }, crawler_name: "NameString", }, ], description: "DescriptionString", start_on_creation: false, tags: { "TagKey" => "TagValue", }, event_batching_condition: { batch_size: 1, # required batch_window: 1, }, }
@!attribute [rw] name
The name of the trigger. @return [String]
@!attribute [rw] workflow_name
The name of the workflow associated with the trigger. @return [String]
@!attribute [rw] type
The type of the new trigger. @return [String]
@!attribute [rw] schedule
A `cron` expression used to specify the schedule (see [Time-Based Schedules for Jobs and Crawlers][1]. For example, to run something every day at 12:15 UTC, you would specify: `cron(15 12 * * ? *)`. This field is required when the trigger type is SCHEDULED. [1]: https://docs.aws.amazon.com/glue/latest/dg/monitor-data-warehouse-schedule.html @return [String]
@!attribute [rw] predicate
A predicate to specify when the new trigger should fire. This field is required when the trigger type is `CONDITIONAL`. @return [Types::Predicate]
@!attribute [rw] actions
The actions initiated by this trigger when it fires. @return [Array<Types::Action>]
@!attribute [rw] description
A description of the new trigger. @return [String]
@!attribute [rw] start_on_creation
Set to `true` to start `SCHEDULED` and `CONDITIONAL` triggers when created. True is not supported for `ON_DEMAND` triggers. @return [Boolean]
@!attribute [rw] tags
The tags to use with this trigger. You may use tags to limit access to the trigger. For more information about tags in Glue, see [Amazon Web Services Tags in Glue][1] in the developer guide. [1]: https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html @return [Hash<String,String>]
@!attribute [rw] event_batching_condition
Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires. @return [Types::EventBatchingCondition]
@see docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CreateTriggerRequest AWS API Documentation
Constants
- SENSITIVE