amazonka-autoscaling-1.6.1: Amazon Auto Scaling SDK.

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

Network.AWS.AutoScaling.PutScheduledUpdateGroupAction

Contents

Description

Creates or updates a scheduled scaling action for an Auto Scaling group. When updating a scheduled scaling action, if you leave a parameter unspecified, the corresponding value remains unchanged.

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

Synopsis

Creating a Request

putScheduledUpdateGroupAction Source #

Creates a value of PutScheduledUpdateGroupAction with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • psugaStartTime - The time for this action to start, in "YYYY-MM-DDThh:mm:ssZ" format in UTC/GMT only (for example, 2014-06-01T00:00:00Z ). If you specify Recurrence and StartTime , 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, Auto Scaling returns an error message.
  • psugaTime - This parameter is deprecated.
  • psugaMaxSize - The maximum size for the Auto Scaling group.
  • psugaRecurrence - The recurring schedule for this action, in Unix cron syntax format. For more information, see Cron in Wikipedia.
  • psugaDesiredCapacity - The number of EC2 instances that should be running in the group.
  • psugaMinSize - The minimum size for the Auto Scaling group.
  • psugaEndTime - The time for the recurring schedule to end. Auto Scaling does not perform the action after this time.
  • psugaAutoScalingGroupName - The name of the Auto Scaling group.
  • psugaScheduledActionName - The name of this scaling action.

data PutScheduledUpdateGroupAction Source #

See: putScheduledUpdateGroupAction smart constructor.

Instances
Eq PutScheduledUpdateGroupAction Source # 
Instance details

Defined in Network.AWS.AutoScaling.PutScheduledUpdateGroupAction

Data PutScheduledUpdateGroupAction Source # 
Instance details

Defined in Network.AWS.AutoScaling.PutScheduledUpdateGroupAction

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PutScheduledUpdateGroupAction -> c PutScheduledUpdateGroupAction #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PutScheduledUpdateGroupAction #

toConstr :: PutScheduledUpdateGroupAction -> Constr #

dataTypeOf :: PutScheduledUpdateGroupAction -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c PutScheduledUpdateGroupAction) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PutScheduledUpdateGroupAction) #

gmapT :: (forall b. Data b => b -> b) -> PutScheduledUpdateGroupAction -> PutScheduledUpdateGroupAction #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PutScheduledUpdateGroupAction -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PutScheduledUpdateGroupAction -> r #

gmapQ :: (forall d. Data d => d -> u) -> PutScheduledUpdateGroupAction -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PutScheduledUpdateGroupAction -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PutScheduledUpdateGroupAction -> m PutScheduledUpdateGroupAction #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PutScheduledUpdateGroupAction -> m PutScheduledUpdateGroupAction #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PutScheduledUpdateGroupAction -> m PutScheduledUpdateGroupAction #

Read PutScheduledUpdateGroupAction Source # 
Instance details

Defined in Network.AWS.AutoScaling.PutScheduledUpdateGroupAction

Show PutScheduledUpdateGroupAction Source # 
Instance details

Defined in Network.AWS.AutoScaling.PutScheduledUpdateGroupAction

Generic PutScheduledUpdateGroupAction Source # 
Instance details

Defined in Network.AWS.AutoScaling.PutScheduledUpdateGroupAction

Associated Types

type Rep PutScheduledUpdateGroupAction :: Type -> Type #

Hashable PutScheduledUpdateGroupAction Source # 
Instance details

Defined in Network.AWS.AutoScaling.PutScheduledUpdateGroupAction

AWSRequest PutScheduledUpdateGroupAction Source # 
Instance details

Defined in Network.AWS.AutoScaling.PutScheduledUpdateGroupAction

Associated Types

type Rs PutScheduledUpdateGroupAction :: Type #

ToHeaders PutScheduledUpdateGroupAction Source # 
Instance details

Defined in Network.AWS.AutoScaling.PutScheduledUpdateGroupAction

ToPath PutScheduledUpdateGroupAction Source # 
Instance details

Defined in Network.AWS.AutoScaling.PutScheduledUpdateGroupAction

ToQuery PutScheduledUpdateGroupAction Source # 
Instance details

Defined in Network.AWS.AutoScaling.PutScheduledUpdateGroupAction

NFData PutScheduledUpdateGroupAction Source # 
Instance details

Defined in Network.AWS.AutoScaling.PutScheduledUpdateGroupAction

type Rep PutScheduledUpdateGroupAction Source # 
Instance details

Defined in Network.AWS.AutoScaling.PutScheduledUpdateGroupAction

type Rep PutScheduledUpdateGroupAction = D1 (MetaData "PutScheduledUpdateGroupAction" "Network.AWS.AutoScaling.PutScheduledUpdateGroupAction" "amazonka-autoscaling-1.6.1-AbdWdH026wCXAk2CK79vG" False) (C1 (MetaCons "PutScheduledUpdateGroupAction'" PrefixI True) (((S1 (MetaSel (Just "_psugaStartTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ISO8601)) :*: S1 (MetaSel (Just "_psugaTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ISO8601))) :*: (S1 (MetaSel (Just "_psugaMaxSize") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int)) :*: S1 (MetaSel (Just "_psugaRecurrence") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_psugaDesiredCapacity") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int)) :*: S1 (MetaSel (Just "_psugaMinSize") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))) :*: (S1 (MetaSel (Just "_psugaEndTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ISO8601)) :*: (S1 (MetaSel (Just "_psugaAutoScalingGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_psugaScheduledActionName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Rs PutScheduledUpdateGroupAction Source # 
Instance details

Defined in Network.AWS.AutoScaling.PutScheduledUpdateGroupAction

Request Lenses

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

The time for this action to start, in "YYYY-MM-DDThh:mm:ssZ" format in UTC/GMT only (for example, 2014-06-01T00:00:00Z ). If you specify Recurrence and StartTime , 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, Auto Scaling returns an error message.

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

The maximum size for the Auto Scaling group.

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

The recurring schedule for this action, in Unix cron syntax format. For more information, see Cron in Wikipedia.

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

The number of EC2 instances that should be running in the group.

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

The minimum size for the Auto Scaling group.

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

The time for the recurring schedule to end. Auto Scaling does not perform the action after this time.

Destructuring the Response

data PutScheduledUpdateGroupActionResponse Source #

Instances
Eq PutScheduledUpdateGroupActionResponse Source # 
Instance details

Defined in Network.AWS.AutoScaling.PutScheduledUpdateGroupAction

Data PutScheduledUpdateGroupActionResponse Source # 
Instance details

Defined in Network.AWS.AutoScaling.PutScheduledUpdateGroupAction

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PutScheduledUpdateGroupActionResponse -> c PutScheduledUpdateGroupActionResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PutScheduledUpdateGroupActionResponse #

toConstr :: PutScheduledUpdateGroupActionResponse -> Constr #

dataTypeOf :: PutScheduledUpdateGroupActionResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c PutScheduledUpdateGroupActionResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PutScheduledUpdateGroupActionResponse) #

gmapT :: (forall b. Data b => b -> b) -> PutScheduledUpdateGroupActionResponse -> PutScheduledUpdateGroupActionResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PutScheduledUpdateGroupActionResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PutScheduledUpdateGroupActionResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> PutScheduledUpdateGroupActionResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PutScheduledUpdateGroupActionResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PutScheduledUpdateGroupActionResponse -> m PutScheduledUpdateGroupActionResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PutScheduledUpdateGroupActionResponse -> m PutScheduledUpdateGroupActionResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PutScheduledUpdateGroupActionResponse -> m PutScheduledUpdateGroupActionResponse #

Read PutScheduledUpdateGroupActionResponse Source # 
Instance details

Defined in Network.AWS.AutoScaling.PutScheduledUpdateGroupAction

Show PutScheduledUpdateGroupActionResponse Source # 
Instance details

Defined in Network.AWS.AutoScaling.PutScheduledUpdateGroupAction

Generic PutScheduledUpdateGroupActionResponse Source # 
Instance details

Defined in Network.AWS.AutoScaling.PutScheduledUpdateGroupAction

NFData PutScheduledUpdateGroupActionResponse Source # 
Instance details

Defined in Network.AWS.AutoScaling.PutScheduledUpdateGroupAction

type Rep PutScheduledUpdateGroupActionResponse Source # 
Instance details

Defined in Network.AWS.AutoScaling.PutScheduledUpdateGroupAction

type Rep PutScheduledUpdateGroupActionResponse = D1 (MetaData "PutScheduledUpdateGroupActionResponse" "Network.AWS.AutoScaling.PutScheduledUpdateGroupAction" "amazonka-autoscaling-1.6.1-AbdWdH026wCXAk2CK79vG" False) (C1 (MetaCons "PutScheduledUpdateGroupActionResponse'" PrefixI False) (U1 :: Type -> Type))