Struct aws_sdk_lightsail::types::AutoSnapshotAddOnRequest
source · #[non_exhaustive]pub struct AutoSnapshotAddOnRequest {
pub snapshot_time_of_day: Option<String>,
}
Expand description
Describes a request to enable or modify the automatic snapshot add-on for an Amazon Lightsail instance or disk.
When you modify the automatic snapshot time for a resource, it is typically effective immediately except under the following conditions:
-
If an automatic snapshot has been created for the current day, and you change the snapshot time to a later time of day, then the new snapshot time will be effective the following day. This ensures that two snapshots are not created for the current day.
-
If an automatic snapshot has not yet been created for the current day, and you change the snapshot time to an earlier time of day, then the new snapshot time will be effective the following day and a snapshot is automatically created at the previously set time for the current day. This ensures that a snapshot is created for the current day.
-
If an automatic snapshot has not yet been created for the current day, and you change the snapshot time to a time that is within 30 minutes from your current time, then the new snapshot time will be effective the following day and a snapshot is automatically created at the previously set time for the current day. This ensures that a snapshot is created for the current day, because 30 minutes is required between your current time and the new snapshot time that you specify.
-
If an automatic snapshot is scheduled to be created within 30 minutes from your current time and you change the snapshot time, then the new snapshot time will be effective the following day and a snapshot is automatically created at the previously set time for the current day. This ensures that a snapshot is created for the current day, because 30 minutes is required between your current time and the new snapshot time that you specify.
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.snapshot_time_of_day: Option<String>
The daily time when an automatic snapshot will be created.
Constraints:
-
Must be in
HH:00
format, and in an hourly increment. -
Specified in Coordinated Universal Time (UTC).
-
The snapshot will be automatically created between the time specified and up to 45 minutes after.
Implementations§
source§impl AutoSnapshotAddOnRequest
impl AutoSnapshotAddOnRequest
sourcepub fn snapshot_time_of_day(&self) -> Option<&str>
pub fn snapshot_time_of_day(&self) -> Option<&str>
The daily time when an automatic snapshot will be created.
Constraints:
-
Must be in
HH:00
format, and in an hourly increment. -
Specified in Coordinated Universal Time (UTC).
-
The snapshot will be automatically created between the time specified and up to 45 minutes after.
source§impl AutoSnapshotAddOnRequest
impl AutoSnapshotAddOnRequest
sourcepub fn builder() -> AutoSnapshotAddOnRequestBuilder
pub fn builder() -> AutoSnapshotAddOnRequestBuilder
Creates a new builder-style object to manufacture AutoSnapshotAddOnRequest
.
Trait Implementations§
source§impl Clone for AutoSnapshotAddOnRequest
impl Clone for AutoSnapshotAddOnRequest
source§fn clone(&self) -> AutoSnapshotAddOnRequest
fn clone(&self) -> AutoSnapshotAddOnRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AutoSnapshotAddOnRequest
impl Debug for AutoSnapshotAddOnRequest
source§impl PartialEq for AutoSnapshotAddOnRequest
impl PartialEq for AutoSnapshotAddOnRequest
source§fn eq(&self, other: &AutoSnapshotAddOnRequest) -> bool
fn eq(&self, other: &AutoSnapshotAddOnRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AutoSnapshotAddOnRequest
Auto Trait Implementations§
impl Freeze for AutoSnapshotAddOnRequest
impl RefUnwindSafe for AutoSnapshotAddOnRequest
impl Send for AutoSnapshotAddOnRequest
impl Sync for AutoSnapshotAddOnRequest
impl Unpin for AutoSnapshotAddOnRequest
impl UnwindSafe for AutoSnapshotAddOnRequest
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