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.
Trait Implementations§
source§impl PartialEq for Trigger
impl PartialEq for Trigger
impl StructuralPartialEq for Trigger
Auto Trait Implementations§
impl Freeze for Trigger
impl RefUnwindSafe for Trigger
impl Send for Trigger
impl Sync for Trigger
impl Unpin for Trigger
impl UnwindSafe for Trigger
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more