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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional 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

The schedule for Monday.

The schedule for Tuesday.

The schedule for Wednesday.

The schedule for Thursday.

The schedule for Friday.

The schedule for Saturday.

The schedule for Sunday.

Creates a new builder-style object to manufacture WeeklyAutoScalingSchedule

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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