Struct aws_sdk_glue::types::Trigger
source · #[non_exhaustive]pub struct Trigger {
pub name: Option<String>,
pub workflow_name: Option<String>,
pub id: Option<String>,
pub type: Option<TriggerType>,
pub state: Option<TriggerState>,
pub description: Option<String>,
pub schedule: Option<String>,
pub actions: Option<Vec<Action>>,
pub predicate: Option<Predicate>,
pub event_batching_condition: Option<EventBatchingCondition>,
}
Expand description
Information about a specific trigger.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: Option<String>
The name of the trigger.
workflow_name: Option<String>
The name of the workflow associated with the trigger.
id: Option<String>
Reserved for future use.
type: Option<TriggerType>
The type of trigger that this is.
state: Option<TriggerState>
The current state of the trigger.
description: Option<String>
A description of this trigger.
schedule: Option<String>
A cron
expression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers. For example, to run something every day at 12:15 UTC, you would specify: cron(15 12 * * ? *)
.
actions: Option<Vec<Action>>
The actions initiated by this trigger.
predicate: Option<Predicate>
The predicate of this trigger, which defines when it will fire.
event_batching_condition: Option<EventBatchingCondition>
Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.
Implementations§
source§impl Trigger
impl Trigger
sourcepub fn workflow_name(&self) -> Option<&str>
pub fn workflow_name(&self) -> Option<&str>
The name of the workflow associated with the trigger.
sourcepub fn type(&self) -> Option<&TriggerType>
pub fn type(&self) -> Option<&TriggerType>
The type of trigger that this is.
sourcepub fn state(&self) -> Option<&TriggerState>
pub fn state(&self) -> Option<&TriggerState>
The current state of the trigger.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of this trigger.
sourcepub fn schedule(&self) -> Option<&str>
pub fn schedule(&self) -> Option<&str>
A cron
expression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers. For example, to run something every day at 12:15 UTC, you would specify: cron(15 12 * * ? *)
.
sourcepub fn actions(&self) -> &[Action]
pub fn actions(&self) -> &[Action]
The actions initiated by this trigger.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .actions.is_none()
.
sourcepub fn predicate(&self) -> Option<&Predicate>
pub fn predicate(&self) -> Option<&Predicate>
The predicate of this trigger, which defines when it will fire.
sourcepub fn event_batching_condition(&self) -> Option<&EventBatchingCondition>
pub fn event_batching_condition(&self) -> Option<&EventBatchingCondition>
Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.