amazonka-autoscaling-1.6.0: 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 #

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 #

See: putScheduledUpdateGroupAction smart constructor.

Instances

Eq PutScheduledUpdateGroupAction # 
Data 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 # 
Show PutScheduledUpdateGroupAction # 
Generic PutScheduledUpdateGroupAction # 
Hashable PutScheduledUpdateGroupAction # 
NFData PutScheduledUpdateGroupAction # 
AWSRequest PutScheduledUpdateGroupAction # 
ToHeaders PutScheduledUpdateGroupAction # 
ToPath PutScheduledUpdateGroupAction # 
ToQuery PutScheduledUpdateGroupAction # 
type Rep PutScheduledUpdateGroupAction # 
type Rep PutScheduledUpdateGroupAction = D1 * (MetaData "PutScheduledUpdateGroupAction" "Network.AWS.AutoScaling.PutScheduledUpdateGroupAction" "amazonka-autoscaling-1.6.0-DMznPeeRJvH7GRIPsqcJh1" False) (C1 * (MetaCons "PutScheduledUpdateGroupAction'" PrefixI True) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_psugaStartTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe ISO8601))) (S1 * (MetaSel (Just Symbol "_psugaTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe ISO8601)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_psugaMaxSize") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Int))) (S1 * (MetaSel (Just Symbol "_psugaRecurrence") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_psugaDesiredCapacity") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Int))) (S1 * (MetaSel (Just Symbol "_psugaMinSize") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Int)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_psugaEndTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe ISO8601))) ((:*:) * (S1 * (MetaSel (Just Symbol "_psugaAutoScalingGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_psugaScheduledActionName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))))
type Rs PutScheduledUpdateGroupAction # 

Request Lenses

psugaStartTime :: Lens' PutScheduledUpdateGroupAction (Maybe UTCTime) #

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 :: Lens' PutScheduledUpdateGroupAction (Maybe UTCTime) #

This parameter is deprecated.

psugaMaxSize :: Lens' PutScheduledUpdateGroupAction (Maybe Int) #

The maximum size for the Auto Scaling group.

psugaRecurrence :: Lens' PutScheduledUpdateGroupAction (Maybe Text) #

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

psugaDesiredCapacity :: Lens' PutScheduledUpdateGroupAction (Maybe Int) #

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

psugaMinSize :: Lens' PutScheduledUpdateGroupAction (Maybe Int) #

The minimum size for the Auto Scaling group.

psugaEndTime :: Lens' PutScheduledUpdateGroupAction (Maybe UTCTime) #

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

Destructuring the Response

putScheduledUpdateGroupActionResponse :: PutScheduledUpdateGroupActionResponse #

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

data PutScheduledUpdateGroupActionResponse #

Instances

Eq PutScheduledUpdateGroupActionResponse # 
Data PutScheduledUpdateGroupActionResponse # 

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 # 
Show PutScheduledUpdateGroupActionResponse # 
Generic PutScheduledUpdateGroupActionResponse # 
NFData PutScheduledUpdateGroupActionResponse # 
type Rep PutScheduledUpdateGroupActionResponse # 
type Rep PutScheduledUpdateGroupActionResponse = D1 * (MetaData "PutScheduledUpdateGroupActionResponse" "Network.AWS.AutoScaling.PutScheduledUpdateGroupAction" "amazonka-autoscaling-1.6.0-DMznPeeRJvH7GRIPsqcJh1" False) (C1 * (MetaCons "PutScheduledUpdateGroupActionResponse'" PrefixI False) (U1 *))