Struct aws_sdk_datasync::types::TaskSchedule
source · #[non_exhaustive]pub struct TaskSchedule {
pub schedule_expression: String,
pub status: Option<ScheduleStatus>,
}
Expand description
Configures your DataSync task to run on a schedule (at a minimum interval of 1 hour).
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.schedule_expression: String
Specifies your task schedule by using a cron expression in UTC time. For information about cron expression syntax, see the Amazon EventBridge User Guide .
status: Option<ScheduleStatus>
Specifies whether to enable or disable your task schedule. Your schedule is enabled by default, but there can be situations where you need to disable it. For example, you might need to pause a recurring transfer to fix an issue with your task or perform maintenance on your storage system.
DataSync might disable your schedule automatically if your task fails repeatedly with the same error. For more information, see TaskScheduleDetails.
Implementations§
source§impl TaskSchedule
impl TaskSchedule
sourcepub fn schedule_expression(&self) -> &str
pub fn schedule_expression(&self) -> &str
Specifies your task schedule by using a cron expression in UTC time. For information about cron expression syntax, see the Amazon EventBridge User Guide .
sourcepub fn status(&self) -> Option<&ScheduleStatus>
pub fn status(&self) -> Option<&ScheduleStatus>
Specifies whether to enable or disable your task schedule. Your schedule is enabled by default, but there can be situations where you need to disable it. For example, you might need to pause a recurring transfer to fix an issue with your task or perform maintenance on your storage system.
DataSync might disable your schedule automatically if your task fails repeatedly with the same error. For more information, see TaskScheduleDetails.
source§impl TaskSchedule
impl TaskSchedule
sourcepub fn builder() -> TaskScheduleBuilder
pub fn builder() -> TaskScheduleBuilder
Creates a new builder-style object to manufacture TaskSchedule
.
Trait Implementations§
source§impl Clone for TaskSchedule
impl Clone for TaskSchedule
source§fn clone(&self) -> TaskSchedule
fn clone(&self) -> TaskSchedule
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TaskSchedule
impl Debug for TaskSchedule
source§impl PartialEq for TaskSchedule
impl PartialEq for TaskSchedule
source§fn eq(&self, other: &TaskSchedule) -> bool
fn eq(&self, other: &TaskSchedule) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TaskSchedule
Auto Trait Implementations§
impl Freeze for TaskSchedule
impl RefUnwindSafe for TaskSchedule
impl Send for TaskSchedule
impl Sync for TaskSchedule
impl Unpin for TaskSchedule
impl UnwindSafe for TaskSchedule
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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