Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
Synopsis
- data PutScheduledUpdateGroupAction = PutScheduledUpdateGroupAction' {}
- newPutScheduledUpdateGroupAction :: Text -> Text -> PutScheduledUpdateGroupAction
- putScheduledUpdateGroupAction_startTime :: Lens' PutScheduledUpdateGroupAction (Maybe UTCTime)
- putScheduledUpdateGroupAction_time :: Lens' PutScheduledUpdateGroupAction (Maybe UTCTime)
- putScheduledUpdateGroupAction_maxSize :: Lens' PutScheduledUpdateGroupAction (Maybe Int)
- putScheduledUpdateGroupAction_recurrence :: Lens' PutScheduledUpdateGroupAction (Maybe Text)
- putScheduledUpdateGroupAction_desiredCapacity :: Lens' PutScheduledUpdateGroupAction (Maybe Int)
- putScheduledUpdateGroupAction_minSize :: Lens' PutScheduledUpdateGroupAction (Maybe Int)
- putScheduledUpdateGroupAction_endTime :: Lens' PutScheduledUpdateGroupAction (Maybe UTCTime)
- putScheduledUpdateGroupAction_timeZone :: Lens' PutScheduledUpdateGroupAction (Maybe Text)
- putScheduledUpdateGroupAction_autoScalingGroupName :: Lens' PutScheduledUpdateGroupAction Text
- putScheduledUpdateGroupAction_scheduledActionName :: Lens' PutScheduledUpdateGroupAction Text
- data PutScheduledUpdateGroupActionResponse = PutScheduledUpdateGroupActionResponse' {
- newPutScheduledUpdateGroupActionResponse :: PutScheduledUpdateGroupActionResponse
Creating a Request
data PutScheduledUpdateGroupAction Source #
See: newPutScheduledUpdateGroupAction
smart constructor.
PutScheduledUpdateGroupAction' | |
|
Instances
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:
$sel:startTime: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,
"2019-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.
If you try to schedule your action in the past, Amazon EC2 Auto Scaling returns an error message.
$sel:time:PutScheduledUpdateGroupAction'
, putScheduledUpdateGroupAction_time
- This parameter is no longer used.
$sel:maxSize:PutScheduledUpdateGroupAction'
, putScheduledUpdateGroupAction_maxSize
- The maximum size of the Auto Scaling group.
$sel:recurrence: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.
$sel:desiredCapacity: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.
$sel:minSize:PutScheduledUpdateGroupAction'
, putScheduledUpdateGroupAction_minSize
- The minimum size of the Auto Scaling group.
$sel:endTime:PutScheduledUpdateGroupAction'
, putScheduledUpdateGroupAction_endTime
- The date and time for the recurring schedule to end, in UTC.
$sel:timeZone: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.
$sel:autoScalingGroupName:PutScheduledUpdateGroupAction'
, putScheduledUpdateGroupAction_autoScalingGroupName
- The name of the Auto Scaling group.
$sel:scheduledActionName:PutScheduledUpdateGroupAction'
, putScheduledUpdateGroupAction_scheduledActionName
- The name of this scaling action.
Request Lenses
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,
"2019-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.
If you try to schedule your action in the past, Amazon EC2 Auto Scaling returns an error message.
putScheduledUpdateGroupAction_time :: Lens' PutScheduledUpdateGroupAction (Maybe UTCTime) Source #
This parameter is no longer used.
putScheduledUpdateGroupAction_maxSize :: Lens' PutScheduledUpdateGroupAction (Maybe Int) Source #
The maximum size of the Auto Scaling group.
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_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.
putScheduledUpdateGroupAction_minSize :: Lens' PutScheduledUpdateGroupAction (Maybe Int) Source #
The minimum size of the Auto Scaling group.
putScheduledUpdateGroupAction_endTime :: Lens' PutScheduledUpdateGroupAction (Maybe UTCTime) Source #
The date and time for the recurring schedule to end, in UTC.
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.
putScheduledUpdateGroupAction_autoScalingGroupName :: Lens' PutScheduledUpdateGroupAction Text Source #
The name of the Auto Scaling group.
putScheduledUpdateGroupAction_scheduledActionName :: Lens' PutScheduledUpdateGroupAction Text Source #
The name of this scaling action.
Destructuring the Response
data PutScheduledUpdateGroupActionResponse Source #
See: newPutScheduledUpdateGroupActionResponse
smart constructor.
Instances
Eq PutScheduledUpdateGroupActionResponse Source # | |
Read PutScheduledUpdateGroupActionResponse Source # | |
Show PutScheduledUpdateGroupActionResponse Source # | |
Generic PutScheduledUpdateGroupActionResponse Source # | |
Defined in Amazonka.AutoScaling.PutScheduledUpdateGroupAction type Rep PutScheduledUpdateGroupActionResponse :: Type -> Type # | |
NFData PutScheduledUpdateGroupActionResponse Source # | |
Defined in Amazonka.AutoScaling.PutScheduledUpdateGroupAction rnf :: PutScheduledUpdateGroupActionResponse -> () # | |
type Rep PutScheduledUpdateGroupActionResponse Source # | |
Defined in Amazonka.AutoScaling.PutScheduledUpdateGroupAction type Rep PutScheduledUpdateGroupActionResponse = D1 ('MetaData "PutScheduledUpdateGroupActionResponse" "Amazonka.AutoScaling.PutScheduledUpdateGroupAction" "libZSservicesZSamazonka-autoscalingZSamazonka-autoscaling" '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.