Struct aws_sdk_sagemaker::types::builders::ScheduleConfigBuilder
source · #[non_exhaustive]pub struct ScheduleConfigBuilder { /* private fields */ }
Expand description
A builder for ScheduleConfig
.
Implementations§
source§impl ScheduleConfigBuilder
impl ScheduleConfigBuilder
sourcepub fn schedule_expression(self, input: impl Into<String>) -> Self
pub fn schedule_expression(self, input: impl Into<String>) -> Self
A cron expression that describes details about the monitoring schedule.
Currently the only supported cron expressions are:
-
If you want to set the job to start every hour, please use the following:
Hourly: cron(0 * ? * * *)
-
If you want to start the job daily:
cron(0 [00-23] ? * * *)
For example, the following are valid cron expressions:
-
Daily at noon UTC:
cron(0 12 ? * * *)
-
Daily at midnight UTC:
cron(0 0 ? * * *)
To support running every 6, 12 hours, the following are also supported:
cron(0 [00-23]/[01-24] ? * * *)
For example, the following are valid cron expressions:
-
Every 12 hours, starting at 5pm UTC:
cron(0 17/12 ? * * *)
-
Every two hours starting at midnight:
cron(0 0/2 ? * * *)
-
Even though the cron expression is set to start at 5PM UTC, note that there could be a delay of 0-20 minutes from the actual requested time to run the execution.
-
We recommend that if you would like a daily schedule, you do not provide this parameter. Amazon SageMaker will pick a time for running every day.
sourcepub fn set_schedule_expression(self, input: Option<String>) -> Self
pub fn set_schedule_expression(self, input: Option<String>) -> Self
A cron expression that describes details about the monitoring schedule.
Currently the only supported cron expressions are:
-
If you want to set the job to start every hour, please use the following:
Hourly: cron(0 * ? * * *)
-
If you want to start the job daily:
cron(0 [00-23] ? * * *)
For example, the following are valid cron expressions:
-
Daily at noon UTC:
cron(0 12 ? * * *)
-
Daily at midnight UTC:
cron(0 0 ? * * *)
To support running every 6, 12 hours, the following are also supported:
cron(0 [00-23]/[01-24] ? * * *)
For example, the following are valid cron expressions:
-
Every 12 hours, starting at 5pm UTC:
cron(0 17/12 ? * * *)
-
Every two hours starting at midnight:
cron(0 0/2 ? * * *)
-
Even though the cron expression is set to start at 5PM UTC, note that there could be a delay of 0-20 minutes from the actual requested time to run the execution.
-
We recommend that if you would like a daily schedule, you do not provide this parameter. Amazon SageMaker will pick a time for running every day.
sourcepub fn build(self) -> ScheduleConfig
pub fn build(self) -> ScheduleConfig
Consumes the builder and constructs a ScheduleConfig
.
Trait Implementations§
source§impl Clone for ScheduleConfigBuilder
impl Clone for ScheduleConfigBuilder
source§fn clone(&self) -> ScheduleConfigBuilder
fn clone(&self) -> ScheduleConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ScheduleConfigBuilder
impl Debug for ScheduleConfigBuilder
source§impl Default for ScheduleConfigBuilder
impl Default for ScheduleConfigBuilder
source§fn default() -> ScheduleConfigBuilder
fn default() -> ScheduleConfigBuilder
source§impl PartialEq<ScheduleConfigBuilder> for ScheduleConfigBuilder
impl PartialEq<ScheduleConfigBuilder> for ScheduleConfigBuilder
source§fn eq(&self, other: &ScheduleConfigBuilder) -> bool
fn eq(&self, other: &ScheduleConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.