Struct aws_sdk_glue::operation::create_trigger::CreateTriggerInput
source · #[non_exhaustive]pub struct CreateTriggerInput {
pub name: Option<String>,
pub workflow_name: Option<String>,
pub type: Option<TriggerType>,
pub schedule: Option<String>,
pub predicate: Option<Predicate>,
pub actions: Option<Vec<Action>>,
pub description: Option<String>,
pub start_on_creation: Option<bool>,
pub tags: Option<HashMap<String, String>>,
pub event_batching_condition: Option<EventBatchingCondition>,
}
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.
type: Option<TriggerType>
The type of the new 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 * * ? *)
.
This field is required when the trigger type is SCHEDULED.
predicate: Option<Predicate>
A predicate to specify when the new trigger should fire.
This field is required when the trigger type is CONDITIONAL
.
actions: Option<Vec<Action>>
The actions initiated by this trigger when it fires.
description: Option<String>
A description of the new trigger.
start_on_creation: Option<bool>
Set to true
to start SCHEDULED
and CONDITIONAL
triggers when created. True is not supported for ON_DEMAND
triggers.
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 in the developer guide.
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 CreateTriggerInput
impl CreateTriggerInput
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 the new 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 * * ? *)
.
This field is required when the trigger type is SCHEDULED.
sourcepub fn predicate(&self) -> Option<&Predicate>
pub fn predicate(&self) -> Option<&Predicate>
A predicate to specify when the new trigger should fire.
This field is required when the trigger type is CONDITIONAL
.
sourcepub fn actions(&self) -> &[Action]
pub fn actions(&self) -> &[Action]
The actions initiated by this trigger when it fires.
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 description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the new trigger.
sourcepub fn start_on_creation(&self) -> Option<bool>
pub fn start_on_creation(&self) -> Option<bool>
Set to true
to start SCHEDULED
and CONDITIONAL
triggers when created. True is not supported for ON_DEMAND
triggers.
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 in the developer guide.
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.
source§impl CreateTriggerInput
impl CreateTriggerInput
sourcepub fn builder() -> CreateTriggerInputBuilder
pub fn builder() -> CreateTriggerInputBuilder
Creates a new builder-style object to manufacture CreateTriggerInput
.
Trait Implementations§
source§impl Clone for CreateTriggerInput
impl Clone for CreateTriggerInput
source§fn clone(&self) -> CreateTriggerInput
fn clone(&self) -> CreateTriggerInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateTriggerInput
impl Debug for CreateTriggerInput
source§impl PartialEq for CreateTriggerInput
impl PartialEq for CreateTriggerInput
source§fn eq(&self, other: &CreateTriggerInput) -> bool
fn eq(&self, other: &CreateTriggerInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateTriggerInput
Auto Trait Implementations§
impl Freeze for CreateTriggerInput
impl RefUnwindSafe for CreateTriggerInput
impl Send for CreateTriggerInput
impl Sync for CreateTriggerInput
impl Unpin for CreateTriggerInput
impl UnwindSafe for CreateTriggerInput
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