Struct aws_sdk_iot::types::SchedulingConfig
source · #[non_exhaustive]pub struct SchedulingConfig {
pub start_time: Option<String>,
pub end_time: Option<String>,
pub end_behavior: Option<JobEndBehavior>,
pub maintenance_windows: Option<Vec<MaintenanceWindow>>,
}
Expand description
Specifies the date and time that a job will begin the rollout of the job document to all devices in the target group. Additionally, you can specify the end behavior for each job execution when it reaches the scheduled end time.
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.start_time: Option<String>
The time a job will begin rollout of the job document to all devices in the target group for a job. The startTime
can be scheduled up to a year in advance and must be scheduled a minimum of thirty minutes from the current time. The date and time format for the startTime
is YYYY-MM-DD for the date and HH:MM for the time.
For more information on the syntax for startTime
when using an API command or the Command Line Interface, see Timestamp.
end_time: Option<String>
The time a job will stop rollout of the job document to all devices in the target group for a job. The endTime
must take place no later than two years from the current time and be scheduled a minimum of thirty minutes from the current time. The minimum duration between startTime
and endTime
is thirty minutes. The maximum duration between startTime
and endTime
is two years. The date and time format for the endTime
is YYYY-MM-DD for the date and HH:MM for the time.
For more information on the syntax for endTime
when using an API command or the Command Line Interface, see Timestamp.
end_behavior: Option<JobEndBehavior>
Specifies the end behavior for all job executions after a job reaches the selected endTime
. If endTime
is not selected when creating the job, then endBehavior
does not apply.
maintenance_windows: Option<Vec<MaintenanceWindow>>
An optional configuration within the SchedulingConfig
to setup a recurring maintenance window with a predetermined start time and duration for the rollout of a job document to all devices in a target group for a job.
Implementations§
source§impl SchedulingConfig
impl SchedulingConfig
sourcepub fn start_time(&self) -> Option<&str>
pub fn start_time(&self) -> Option<&str>
The time a job will begin rollout of the job document to all devices in the target group for a job. The startTime
can be scheduled up to a year in advance and must be scheduled a minimum of thirty minutes from the current time. The date and time format for the startTime
is YYYY-MM-DD for the date and HH:MM for the time.
For more information on the syntax for startTime
when using an API command or the Command Line Interface, see Timestamp.
sourcepub fn end_time(&self) -> Option<&str>
pub fn end_time(&self) -> Option<&str>
The time a job will stop rollout of the job document to all devices in the target group for a job. The endTime
must take place no later than two years from the current time and be scheduled a minimum of thirty minutes from the current time. The minimum duration between startTime
and endTime
is thirty minutes. The maximum duration between startTime
and endTime
is two years. The date and time format for the endTime
is YYYY-MM-DD for the date and HH:MM for the time.
For more information on the syntax for endTime
when using an API command or the Command Line Interface, see Timestamp.
sourcepub fn end_behavior(&self) -> Option<&JobEndBehavior>
pub fn end_behavior(&self) -> Option<&JobEndBehavior>
Specifies the end behavior for all job executions after a job reaches the selected endTime
. If endTime
is not selected when creating the job, then endBehavior
does not apply.
sourcepub fn maintenance_windows(&self) -> &[MaintenanceWindow]
pub fn maintenance_windows(&self) -> &[MaintenanceWindow]
An optional configuration within the SchedulingConfig
to setup a recurring maintenance window with a predetermined start time and duration for the rollout of a job document to all devices in a target group for a job.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .maintenance_windows.is_none()
.
source§impl SchedulingConfig
impl SchedulingConfig
sourcepub fn builder() -> SchedulingConfigBuilder
pub fn builder() -> SchedulingConfigBuilder
Creates a new builder-style object to manufacture SchedulingConfig
.
Trait Implementations§
source§impl Clone for SchedulingConfig
impl Clone for SchedulingConfig
source§fn clone(&self) -> SchedulingConfig
fn clone(&self) -> SchedulingConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SchedulingConfig
impl Debug for SchedulingConfig
source§impl PartialEq for SchedulingConfig
impl PartialEq for SchedulingConfig
source§fn eq(&self, other: &SchedulingConfig) -> bool
fn eq(&self, other: &SchedulingConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SchedulingConfig
Auto Trait Implementations§
impl Freeze for SchedulingConfig
impl RefUnwindSafe for SchedulingConfig
impl Send for SchedulingConfig
impl Sync for SchedulingConfig
impl Unpin for SchedulingConfig
impl UnwindSafe for SchedulingConfig
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