libZSservicesZSamazonka-opsworksZSamazonka-opsworks
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.OpsWorks.Types.WeeklyAutoScalingSchedule

Description

 
Synopsis

Documentation

data WeeklyAutoScalingSchedule Source #

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" }

See: newWeeklyAutoScalingSchedule smart constructor.

Constructors

WeeklyAutoScalingSchedule' 

Fields

Instances

Instances details
Eq WeeklyAutoScalingSchedule Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.WeeklyAutoScalingSchedule

Read WeeklyAutoScalingSchedule Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.WeeklyAutoScalingSchedule

Show WeeklyAutoScalingSchedule Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.WeeklyAutoScalingSchedule

Generic WeeklyAutoScalingSchedule Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.WeeklyAutoScalingSchedule

Associated Types

type Rep WeeklyAutoScalingSchedule :: Type -> Type #

NFData WeeklyAutoScalingSchedule Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.WeeklyAutoScalingSchedule

Hashable WeeklyAutoScalingSchedule Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.WeeklyAutoScalingSchedule

ToJSON WeeklyAutoScalingSchedule Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.WeeklyAutoScalingSchedule

FromJSON WeeklyAutoScalingSchedule Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.WeeklyAutoScalingSchedule

type Rep WeeklyAutoScalingSchedule Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.WeeklyAutoScalingSchedule

newWeeklyAutoScalingSchedule :: WeeklyAutoScalingSchedule Source #

Create a value of WeeklyAutoScalingSchedule with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:thursday:WeeklyAutoScalingSchedule', weeklyAutoScalingSchedule_thursday - The schedule for Thursday.

$sel:wednesday:WeeklyAutoScalingSchedule', weeklyAutoScalingSchedule_wednesday - The schedule for Wednesday.

$sel:saturday:WeeklyAutoScalingSchedule', weeklyAutoScalingSchedule_saturday - The schedule for Saturday.

$sel:monday:WeeklyAutoScalingSchedule', weeklyAutoScalingSchedule_monday - The schedule for Monday.

$sel:friday:WeeklyAutoScalingSchedule', weeklyAutoScalingSchedule_friday - The schedule for Friday.

$sel:sunday:WeeklyAutoScalingSchedule', weeklyAutoScalingSchedule_sunday - The schedule for Sunday.

$sel:tuesday:WeeklyAutoScalingSchedule', weeklyAutoScalingSchedule_tuesday - The schedule for Tuesday.