amazonka-autoscaling-2.0: Amazon Auto Scaling SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.AutoScaling.PutScheduledUpdateGroupAction

Description

Creates or updates a scheduled scaling action for an Auto Scaling group.

For more information, see Scheduled scaling in the Amazon EC2 Auto Scaling User Guide.

You can view the scheduled actions for an Auto Scaling group using the DescribeScheduledActions API call. If you are no longer using a scheduled action, you can delete it by calling the DeleteScheduledAction API.

If you try to schedule your action in the past, Amazon EC2 Auto Scaling returns an error message.

Synopsis

Creating a Request

data PutScheduledUpdateGroupAction Source #

See: newPutScheduledUpdateGroupAction smart constructor.

Constructors

PutScheduledUpdateGroupAction' 

Fields

  • desiredCapacity :: Maybe Int

    The desired capacity is the initial capacity of the Auto Scaling group after the scheduled action runs and the capacity it attempts to maintain. It can scale beyond this capacity if you add more scaling conditions.

    You must specify at least one of the following properties: MaxSize, MinSize, or DesiredCapacity.

  • endTime :: Maybe ISO8601

    The date and time for the recurring schedule to end, in UTC. For example, "2021-06-01T00:00:00Z".

  • maxSize :: Maybe Int

    The maximum size of the Auto Scaling group.

  • minSize :: Maybe Int

    The minimum size of the Auto Scaling group.

  • recurrence :: Maybe Text

    The recurring schedule for this action. This format consists of five fields separated by white spaces: [Minute] [Hour] [Day_of_Month] [Month_of_Year] [Day_of_Week]. The value must be in quotes (for example, "30 0 1 1,6,12 *"). For more information about this format, see Crontab.

    When StartTime and EndTime are specified with Recurrence, they form the boundaries of when the recurring action starts and stops.

    Cron expressions use Universal Coordinated Time (UTC) by default.

  • startTime :: Maybe ISO8601

    The date and time for this action to start, in YYYY-MM-DDThh:mm:ssZ format in UTC/GMT only and in quotes (for example, "2021-06-01T00:00:00Z").

    If you specify Recurrence and StartTime, Amazon EC2 Auto Scaling performs the action at this time, and then performs the action based on the specified recurrence.

  • time :: Maybe ISO8601

    This property is no longer used.

  • timeZone :: Maybe Text

    Specifies the time zone for a cron expression. If a time zone is not provided, UTC is used by default.

    Valid values are the canonical names of the IANA time zones, derived from the IANA Time Zone Database (such as Etc/GMT+9 or Pacific/Tahiti). For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.

  • autoScalingGroupName :: Text

    The name of the Auto Scaling group.

  • scheduledActionName :: Text

    The name of this scaling action.

Instances

Instances details
ToHeaders PutScheduledUpdateGroupAction Source # 
Instance details

Defined in Amazonka.AutoScaling.PutScheduledUpdateGroupAction

ToPath PutScheduledUpdateGroupAction Source # 
Instance details

Defined in Amazonka.AutoScaling.PutScheduledUpdateGroupAction

ToQuery PutScheduledUpdateGroupAction Source # 
Instance details

Defined in Amazonka.AutoScaling.PutScheduledUpdateGroupAction

AWSRequest PutScheduledUpdateGroupAction Source # 
Instance details

Defined in Amazonka.AutoScaling.PutScheduledUpdateGroupAction

Generic PutScheduledUpdateGroupAction Source # 
Instance details

Defined in Amazonka.AutoScaling.PutScheduledUpdateGroupAction

Associated Types

type Rep PutScheduledUpdateGroupAction :: Type -> Type #

Read PutScheduledUpdateGroupAction Source # 
Instance details

Defined in Amazonka.AutoScaling.PutScheduledUpdateGroupAction

Show PutScheduledUpdateGroupAction Source # 
Instance details

Defined in Amazonka.AutoScaling.PutScheduledUpdateGroupAction

NFData PutScheduledUpdateGroupAction Source # 
Instance details

Defined in Amazonka.AutoScaling.PutScheduledUpdateGroupAction

Eq PutScheduledUpdateGroupAction Source # 
Instance details

Defined in Amazonka.AutoScaling.PutScheduledUpdateGroupAction

Hashable PutScheduledUpdateGroupAction Source # 
Instance details

Defined in Amazonka.AutoScaling.PutScheduledUpdateGroupAction

type AWSResponse PutScheduledUpdateGroupAction Source # 
Instance details

Defined in Amazonka.AutoScaling.PutScheduledUpdateGroupAction

type Rep PutScheduledUpdateGroupAction Source # 
Instance details

Defined in Amazonka.AutoScaling.PutScheduledUpdateGroupAction

newPutScheduledUpdateGroupAction Source #

Create a value of PutScheduledUpdateGroupAction 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:

PutScheduledUpdateGroupAction, putScheduledUpdateGroupAction_desiredCapacity - The desired capacity is the initial capacity of the Auto Scaling group after the scheduled action runs and the capacity it attempts to maintain. It can scale beyond this capacity if you add more scaling conditions.

You must specify at least one of the following properties: MaxSize, MinSize, or DesiredCapacity.

PutScheduledUpdateGroupAction, putScheduledUpdateGroupAction_endTime - The date and time for the recurring schedule to end, in UTC. For example, "2021-06-01T00:00:00Z".

PutScheduledUpdateGroupAction, putScheduledUpdateGroupAction_maxSize - The maximum size of the Auto Scaling group.

PutScheduledUpdateGroupAction, putScheduledUpdateGroupAction_minSize - The minimum size of the Auto Scaling group.

PutScheduledUpdateGroupAction, putScheduledUpdateGroupAction_recurrence - The recurring schedule for this action. This format consists of five fields separated by white spaces: [Minute] [Hour] [Day_of_Month] [Month_of_Year] [Day_of_Week]. The value must be in quotes (for example, "30 0 1 1,6,12 *"). For more information about this format, see Crontab.

When StartTime and EndTime are specified with Recurrence, they form the boundaries of when the recurring action starts and stops.

Cron expressions use Universal Coordinated Time (UTC) by default.

PutScheduledUpdateGroupAction, putScheduledUpdateGroupAction_startTime - The date and time for this action to start, in YYYY-MM-DDThh:mm:ssZ format in UTC/GMT only and in quotes (for example, "2021-06-01T00:00:00Z").

If you specify Recurrence and StartTime, Amazon EC2 Auto Scaling performs the action at this time, and then performs the action based on the specified recurrence.

PutScheduledUpdateGroupAction, putScheduledUpdateGroupAction_time - This property is no longer used.

PutScheduledUpdateGroupAction, putScheduledUpdateGroupAction_timeZone - Specifies the time zone for a cron expression. If a time zone is not provided, UTC is used by default.

Valid values are the canonical names of the IANA time zones, derived from the IANA Time Zone Database (such as Etc/GMT+9 or Pacific/Tahiti). For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.

PutScheduledUpdateGroupAction, putScheduledUpdateGroupAction_autoScalingGroupName - The name of the Auto Scaling group.

PutScheduledUpdateGroupAction, putScheduledUpdateGroupAction_scheduledActionName - The name of this scaling action.

Request Lenses

putScheduledUpdateGroupAction_desiredCapacity :: Lens' PutScheduledUpdateGroupAction (Maybe Int) Source #

The desired capacity is the initial capacity of the Auto Scaling group after the scheduled action runs and the capacity it attempts to maintain. It can scale beyond this capacity if you add more scaling conditions.

You must specify at least one of the following properties: MaxSize, MinSize, or DesiredCapacity.

putScheduledUpdateGroupAction_endTime :: Lens' PutScheduledUpdateGroupAction (Maybe UTCTime) Source #

The date and time for the recurring schedule to end, in UTC. For example, "2021-06-01T00:00:00Z".

putScheduledUpdateGroupAction_recurrence :: Lens' PutScheduledUpdateGroupAction (Maybe Text) Source #

The recurring schedule for this action. This format consists of five fields separated by white spaces: [Minute] [Hour] [Day_of_Month] [Month_of_Year] [Day_of_Week]. The value must be in quotes (for example, "30 0 1 1,6,12 *"). For more information about this format, see Crontab.

When StartTime and EndTime are specified with Recurrence, they form the boundaries of when the recurring action starts and stops.

Cron expressions use Universal Coordinated Time (UTC) by default.

putScheduledUpdateGroupAction_startTime :: Lens' PutScheduledUpdateGroupAction (Maybe UTCTime) Source #

The date and time for this action to start, in YYYY-MM-DDThh:mm:ssZ format in UTC/GMT only and in quotes (for example, "2021-06-01T00:00:00Z").

If you specify Recurrence and StartTime, Amazon EC2 Auto Scaling performs the action at this time, and then performs the action based on the specified recurrence.

putScheduledUpdateGroupAction_timeZone :: Lens' PutScheduledUpdateGroupAction (Maybe Text) Source #

Specifies the time zone for a cron expression. If a time zone is not provided, UTC is used by default.

Valid values are the canonical names of the IANA time zones, derived from the IANA Time Zone Database (such as Etc/GMT+9 or Pacific/Tahiti). For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.

Destructuring the Response

data PutScheduledUpdateGroupActionResponse Source #

Instances

Instances details
Generic PutScheduledUpdateGroupActionResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.PutScheduledUpdateGroupAction

Read PutScheduledUpdateGroupActionResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.PutScheduledUpdateGroupAction

Show PutScheduledUpdateGroupActionResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.PutScheduledUpdateGroupAction

NFData PutScheduledUpdateGroupActionResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.PutScheduledUpdateGroupAction

Eq PutScheduledUpdateGroupActionResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.PutScheduledUpdateGroupAction

type Rep PutScheduledUpdateGroupActionResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.PutScheduledUpdateGroupAction

type Rep PutScheduledUpdateGroupActionResponse = D1 ('MetaData "PutScheduledUpdateGroupActionResponse" "Amazonka.AutoScaling.PutScheduledUpdateGroupAction" "amazonka-autoscaling-2.0-IerpHfP4BA3Ir4ZL2IR1De" 'False) (C1 ('MetaCons "PutScheduledUpdateGroupActionResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newPutScheduledUpdateGroupActionResponse :: PutScheduledUpdateGroupActionResponse Source #

Create a value of PutScheduledUpdateGroupActionResponse with all optional fields omitted.

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