pub struct WeeklyAutoScalingSchedule {
pub friday: Option<HashMap<String, String>>,
pub monday: Option<HashMap<String, String>>,
pub saturday: Option<HashMap<String, String>>,
pub sunday: Option<HashMap<String, String>>,
pub thursday: Option<HashMap<String, String>>,
pub tuesday: Option<HashMap<String, String>>,
pub wednesday: Option<HashMap<String, String>>,
}
Expand description
Describes a time-based instance's auto scaling schedule. The schedule consists of a set of key-value pairs.
-
The key is the time period (a UTC hour) and must be an integer from 0 - 23.
-
The value indicates whether the instance should be online or offline for the specified period, and must be set to "on" or "off"
The default setting for all time periods is off, so you use the following parameters primarily to specify the online periods. You don't have to explicitly specify offline periods unless you want to change an online period to an offline period.
The following example specifies that the instance should be online for four hours, from UTC 1200 - 1600. It will be off for the remainder of the day.
{ "12":"on", "13":"on", "14":"on", "15":"on" }
Fields
friday: Option<HashMap<String, String>>
The schedule for Friday.
monday: Option<HashMap<String, String>>
The schedule for Monday.
saturday: Option<HashMap<String, String>>
The schedule for Saturday.
sunday: Option<HashMap<String, String>>
The schedule for Sunday.
thursday: Option<HashMap<String, String>>
The schedule for Thursday.
tuesday: Option<HashMap<String, String>>
The schedule for Tuesday.
wednesday: Option<HashMap<String, String>>
The schedule for Wednesday.
Trait Implementations
sourceimpl Clone for WeeklyAutoScalingSchedule
impl Clone for WeeklyAutoScalingSchedule
sourcefn clone(&self) -> WeeklyAutoScalingSchedule
fn clone(&self) -> WeeklyAutoScalingSchedule
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WeeklyAutoScalingSchedule
impl Debug for WeeklyAutoScalingSchedule
sourceimpl Default for WeeklyAutoScalingSchedule
impl Default for WeeklyAutoScalingSchedule
sourcefn default() -> WeeklyAutoScalingSchedule
fn default() -> WeeklyAutoScalingSchedule
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for WeeklyAutoScalingSchedule
impl<'de> Deserialize<'de> for WeeklyAutoScalingSchedule
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<WeeklyAutoScalingSchedule> for WeeklyAutoScalingSchedule
impl PartialEq<WeeklyAutoScalingSchedule> for WeeklyAutoScalingSchedule
sourcefn eq(&self, other: &WeeklyAutoScalingSchedule) -> bool
fn eq(&self, other: &WeeklyAutoScalingSchedule) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &WeeklyAutoScalingSchedule) -> bool
fn ne(&self, other: &WeeklyAutoScalingSchedule) -> bool
This method tests for !=
.
sourceimpl Serialize for WeeklyAutoScalingSchedule
impl Serialize for WeeklyAutoScalingSchedule
impl StructuralPartialEq for WeeklyAutoScalingSchedule
Auto Trait Implementations
impl RefUnwindSafe for WeeklyAutoScalingSchedule
impl Send for WeeklyAutoScalingSchedule
impl Sync for WeeklyAutoScalingSchedule
impl Unpin for WeeklyAutoScalingSchedule
impl UnwindSafe for WeeklyAutoScalingSchedule
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more