Struct aws_sdk_opsworks::model::WeeklyAutoScalingSchedule [−][src]
#[non_exhaustive]pub struct WeeklyAutoScalingSchedule {
pub monday: Option<HashMap<String, String>>,
pub tuesday: Option<HashMap<String, String>>,
pub wednesday: Option<HashMap<String, String>>,
pub thursday: Option<HashMap<String, String>>,
pub friday: Option<HashMap<String, String>>,
pub saturday: Option<HashMap<String, String>>,
pub sunday: 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 (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.monday: Option<HashMap<String, String>>
The schedule for Monday.
tuesday: Option<HashMap<String, String>>
The schedule for Tuesday.
wednesday: Option<HashMap<String, String>>
The schedule for Wednesday.
thursday: Option<HashMap<String, String>>
The schedule for Thursday.
friday: Option<HashMap<String, String>>
The schedule for Friday.
saturday: Option<HashMap<String, String>>
The schedule for Saturday.
sunday: Option<HashMap<String, String>>
The schedule for Sunday.
Implementations
Creates a new builder-style object to manufacture WeeklyAutoScalingSchedule
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more