{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.AutoScaling.Types.ScheduledUpdateGroupAction
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.AutoScaling.Types.ScheduledUpdateGroupAction where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | Describes a scheduled scaling action.
--
-- /See:/ 'newScheduledUpdateGroupAction' smart constructor.
data ScheduledUpdateGroupAction = ScheduledUpdateGroupAction'
  { -- | The name of the Auto Scaling group.
    ScheduledUpdateGroupAction -> Maybe Text
autoScalingGroupName :: Prelude.Maybe Prelude.Text,
    -- | The desired capacity is the initial capacity of the Auto Scaling group
    -- after the scheduled action runs and the capacity it attempts to
    -- maintain.
    ScheduledUpdateGroupAction -> Maybe Int
desiredCapacity :: Prelude.Maybe Prelude.Int,
    -- | The date and time in UTC for the recurring schedule to end. For example,
    -- @\"2019-06-01T00:00:00Z\"@.
    ScheduledUpdateGroupAction -> Maybe ISO8601
endTime :: Prelude.Maybe Data.ISO8601,
    -- | The maximum size of the Auto Scaling group.
    ScheduledUpdateGroupAction -> Maybe Int
maxSize :: Prelude.Maybe Prelude.Int,
    -- | The minimum size of the Auto Scaling group.
    ScheduledUpdateGroupAction -> Maybe Int
minSize :: Prelude.Maybe Prelude.Int,
    -- | The recurring schedule for the action, in Unix cron syntax format.
    --
    -- When @StartTime@ and @EndTime@ are specified with @Recurrence@, they
    -- form the boundaries of when the recurring action starts and stops.
    ScheduledUpdateGroupAction -> Maybe Text
recurrence :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the scheduled action.
    ScheduledUpdateGroupAction -> Maybe Text
scheduledActionARN :: Prelude.Maybe Prelude.Text,
    -- | The name of the scheduled action.
    ScheduledUpdateGroupAction -> Maybe Text
scheduledActionName :: Prelude.Maybe Prelude.Text,
    -- | The date and time in UTC for this action to start. For example,
    -- @\"2019-06-01T00:00:00Z\"@.
    ScheduledUpdateGroupAction -> Maybe ISO8601
startTime :: Prelude.Maybe Data.ISO8601,
    -- | This property is no longer used.
    ScheduledUpdateGroupAction -> Maybe ISO8601
time :: Prelude.Maybe Data.ISO8601,
    -- | The time zone for the cron expression.
    ScheduledUpdateGroupAction -> Maybe Text
timeZone :: Prelude.Maybe Prelude.Text
  }
  deriving (ScheduledUpdateGroupAction -> ScheduledUpdateGroupAction -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ScheduledUpdateGroupAction -> ScheduledUpdateGroupAction -> Bool
$c/= :: ScheduledUpdateGroupAction -> ScheduledUpdateGroupAction -> Bool
== :: ScheduledUpdateGroupAction -> ScheduledUpdateGroupAction -> Bool
$c== :: ScheduledUpdateGroupAction -> ScheduledUpdateGroupAction -> Bool
Prelude.Eq, ReadPrec [ScheduledUpdateGroupAction]
ReadPrec ScheduledUpdateGroupAction
Int -> ReadS ScheduledUpdateGroupAction
ReadS [ScheduledUpdateGroupAction]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ScheduledUpdateGroupAction]
$creadListPrec :: ReadPrec [ScheduledUpdateGroupAction]
readPrec :: ReadPrec ScheduledUpdateGroupAction
$creadPrec :: ReadPrec ScheduledUpdateGroupAction
readList :: ReadS [ScheduledUpdateGroupAction]
$creadList :: ReadS [ScheduledUpdateGroupAction]
readsPrec :: Int -> ReadS ScheduledUpdateGroupAction
$creadsPrec :: Int -> ReadS ScheduledUpdateGroupAction
Prelude.Read, Int -> ScheduledUpdateGroupAction -> ShowS
[ScheduledUpdateGroupAction] -> ShowS
ScheduledUpdateGroupAction -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ScheduledUpdateGroupAction] -> ShowS
$cshowList :: [ScheduledUpdateGroupAction] -> ShowS
show :: ScheduledUpdateGroupAction -> String
$cshow :: ScheduledUpdateGroupAction -> String
showsPrec :: Int -> ScheduledUpdateGroupAction -> ShowS
$cshowsPrec :: Int -> ScheduledUpdateGroupAction -> ShowS
Prelude.Show, forall x.
Rep ScheduledUpdateGroupAction x -> ScheduledUpdateGroupAction
forall x.
ScheduledUpdateGroupAction -> Rep ScheduledUpdateGroupAction x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ScheduledUpdateGroupAction x -> ScheduledUpdateGroupAction
$cfrom :: forall x.
ScheduledUpdateGroupAction -> Rep ScheduledUpdateGroupAction x
Prelude.Generic)

-- |
-- Create a value of 'ScheduledUpdateGroupAction' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'autoScalingGroupName', 'scheduledUpdateGroupAction_autoScalingGroupName' - The name of the Auto Scaling group.
--
-- 'desiredCapacity', 'scheduledUpdateGroupAction_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.
--
-- 'endTime', 'scheduledUpdateGroupAction_endTime' - The date and time in UTC for the recurring schedule to end. For example,
-- @\"2019-06-01T00:00:00Z\"@.
--
-- 'maxSize', 'scheduledUpdateGroupAction_maxSize' - The maximum size of the Auto Scaling group.
--
-- 'minSize', 'scheduledUpdateGroupAction_minSize' - The minimum size of the Auto Scaling group.
--
-- 'recurrence', 'scheduledUpdateGroupAction_recurrence' - The recurring schedule for the action, in Unix cron syntax format.
--
-- When @StartTime@ and @EndTime@ are specified with @Recurrence@, they
-- form the boundaries of when the recurring action starts and stops.
--
-- 'scheduledActionARN', 'scheduledUpdateGroupAction_scheduledActionARN' - The Amazon Resource Name (ARN) of the scheduled action.
--
-- 'scheduledActionName', 'scheduledUpdateGroupAction_scheduledActionName' - The name of the scheduled action.
--
-- 'startTime', 'scheduledUpdateGroupAction_startTime' - The date and time in UTC for this action to start. For example,
-- @\"2019-06-01T00:00:00Z\"@.
--
-- 'time', 'scheduledUpdateGroupAction_time' - This property is no longer used.
--
-- 'timeZone', 'scheduledUpdateGroupAction_timeZone' - The time zone for the cron expression.
newScheduledUpdateGroupAction ::
  ScheduledUpdateGroupAction
newScheduledUpdateGroupAction :: ScheduledUpdateGroupAction
newScheduledUpdateGroupAction =
  ScheduledUpdateGroupAction'
    { $sel:autoScalingGroupName:ScheduledUpdateGroupAction' :: Maybe Text
autoScalingGroupName =
        forall a. Maybe a
Prelude.Nothing,
      $sel:desiredCapacity:ScheduledUpdateGroupAction' :: Maybe Int
desiredCapacity = forall a. Maybe a
Prelude.Nothing,
      $sel:endTime:ScheduledUpdateGroupAction' :: Maybe ISO8601
endTime = forall a. Maybe a
Prelude.Nothing,
      $sel:maxSize:ScheduledUpdateGroupAction' :: Maybe Int
maxSize = forall a. Maybe a
Prelude.Nothing,
      $sel:minSize:ScheduledUpdateGroupAction' :: Maybe Int
minSize = forall a. Maybe a
Prelude.Nothing,
      $sel:recurrence:ScheduledUpdateGroupAction' :: Maybe Text
recurrence = forall a. Maybe a
Prelude.Nothing,
      $sel:scheduledActionARN:ScheduledUpdateGroupAction' :: Maybe Text
scheduledActionARN = forall a. Maybe a
Prelude.Nothing,
      $sel:scheduledActionName:ScheduledUpdateGroupAction' :: Maybe Text
scheduledActionName = forall a. Maybe a
Prelude.Nothing,
      $sel:startTime:ScheduledUpdateGroupAction' :: Maybe ISO8601
startTime = forall a. Maybe a
Prelude.Nothing,
      $sel:time:ScheduledUpdateGroupAction' :: Maybe ISO8601
time = forall a. Maybe a
Prelude.Nothing,
      $sel:timeZone:ScheduledUpdateGroupAction' :: Maybe Text
timeZone = forall a. Maybe a
Prelude.Nothing
    }

-- | The name of the Auto Scaling group.
scheduledUpdateGroupAction_autoScalingGroupName :: Lens.Lens' ScheduledUpdateGroupAction (Prelude.Maybe Prelude.Text)
scheduledUpdateGroupAction_autoScalingGroupName :: Lens' ScheduledUpdateGroupAction (Maybe Text)
scheduledUpdateGroupAction_autoScalingGroupName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ScheduledUpdateGroupAction' {Maybe Text
autoScalingGroupName :: Maybe Text
$sel:autoScalingGroupName:ScheduledUpdateGroupAction' :: ScheduledUpdateGroupAction -> Maybe Text
autoScalingGroupName} -> Maybe Text
autoScalingGroupName) (\s :: ScheduledUpdateGroupAction
s@ScheduledUpdateGroupAction' {} Maybe Text
a -> ScheduledUpdateGroupAction
s {$sel:autoScalingGroupName:ScheduledUpdateGroupAction' :: Maybe Text
autoScalingGroupName = Maybe Text
a} :: ScheduledUpdateGroupAction)

-- | The desired capacity is the initial capacity of the Auto Scaling group
-- after the scheduled action runs and the capacity it attempts to
-- maintain.
scheduledUpdateGroupAction_desiredCapacity :: Lens.Lens' ScheduledUpdateGroupAction (Prelude.Maybe Prelude.Int)
scheduledUpdateGroupAction_desiredCapacity :: Lens' ScheduledUpdateGroupAction (Maybe Int)
scheduledUpdateGroupAction_desiredCapacity = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ScheduledUpdateGroupAction' {Maybe Int
desiredCapacity :: Maybe Int
$sel:desiredCapacity:ScheduledUpdateGroupAction' :: ScheduledUpdateGroupAction -> Maybe Int
desiredCapacity} -> Maybe Int
desiredCapacity) (\s :: ScheduledUpdateGroupAction
s@ScheduledUpdateGroupAction' {} Maybe Int
a -> ScheduledUpdateGroupAction
s {$sel:desiredCapacity:ScheduledUpdateGroupAction' :: Maybe Int
desiredCapacity = Maybe Int
a} :: ScheduledUpdateGroupAction)

-- | The date and time in UTC for the recurring schedule to end. For example,
-- @\"2019-06-01T00:00:00Z\"@.
scheduledUpdateGroupAction_endTime :: Lens.Lens' ScheduledUpdateGroupAction (Prelude.Maybe Prelude.UTCTime)
scheduledUpdateGroupAction_endTime :: Lens' ScheduledUpdateGroupAction (Maybe UTCTime)
scheduledUpdateGroupAction_endTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ScheduledUpdateGroupAction' {Maybe ISO8601
endTime :: Maybe ISO8601
$sel:endTime:ScheduledUpdateGroupAction' :: ScheduledUpdateGroupAction -> Maybe ISO8601
endTime} -> Maybe ISO8601
endTime) (\s :: ScheduledUpdateGroupAction
s@ScheduledUpdateGroupAction' {} Maybe ISO8601
a -> ScheduledUpdateGroupAction
s {$sel:endTime:ScheduledUpdateGroupAction' :: Maybe ISO8601
endTime = Maybe ISO8601
a} :: ScheduledUpdateGroupAction) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The maximum size of the Auto Scaling group.
scheduledUpdateGroupAction_maxSize :: Lens.Lens' ScheduledUpdateGroupAction (Prelude.Maybe Prelude.Int)
scheduledUpdateGroupAction_maxSize :: Lens' ScheduledUpdateGroupAction (Maybe Int)
scheduledUpdateGroupAction_maxSize = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ScheduledUpdateGroupAction' {Maybe Int
maxSize :: Maybe Int
$sel:maxSize:ScheduledUpdateGroupAction' :: ScheduledUpdateGroupAction -> Maybe Int
maxSize} -> Maybe Int
maxSize) (\s :: ScheduledUpdateGroupAction
s@ScheduledUpdateGroupAction' {} Maybe Int
a -> ScheduledUpdateGroupAction
s {$sel:maxSize:ScheduledUpdateGroupAction' :: Maybe Int
maxSize = Maybe Int
a} :: ScheduledUpdateGroupAction)

-- | The minimum size of the Auto Scaling group.
scheduledUpdateGroupAction_minSize :: Lens.Lens' ScheduledUpdateGroupAction (Prelude.Maybe Prelude.Int)
scheduledUpdateGroupAction_minSize :: Lens' ScheduledUpdateGroupAction (Maybe Int)
scheduledUpdateGroupAction_minSize = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ScheduledUpdateGroupAction' {Maybe Int
minSize :: Maybe Int
$sel:minSize:ScheduledUpdateGroupAction' :: ScheduledUpdateGroupAction -> Maybe Int
minSize} -> Maybe Int
minSize) (\s :: ScheduledUpdateGroupAction
s@ScheduledUpdateGroupAction' {} Maybe Int
a -> ScheduledUpdateGroupAction
s {$sel:minSize:ScheduledUpdateGroupAction' :: Maybe Int
minSize = Maybe Int
a} :: ScheduledUpdateGroupAction)

-- | The recurring schedule for the action, in Unix cron syntax format.
--
-- When @StartTime@ and @EndTime@ are specified with @Recurrence@, they
-- form the boundaries of when the recurring action starts and stops.
scheduledUpdateGroupAction_recurrence :: Lens.Lens' ScheduledUpdateGroupAction (Prelude.Maybe Prelude.Text)
scheduledUpdateGroupAction_recurrence :: Lens' ScheduledUpdateGroupAction (Maybe Text)
scheduledUpdateGroupAction_recurrence = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ScheduledUpdateGroupAction' {Maybe Text
recurrence :: Maybe Text
$sel:recurrence:ScheduledUpdateGroupAction' :: ScheduledUpdateGroupAction -> Maybe Text
recurrence} -> Maybe Text
recurrence) (\s :: ScheduledUpdateGroupAction
s@ScheduledUpdateGroupAction' {} Maybe Text
a -> ScheduledUpdateGroupAction
s {$sel:recurrence:ScheduledUpdateGroupAction' :: Maybe Text
recurrence = Maybe Text
a} :: ScheduledUpdateGroupAction)

-- | The Amazon Resource Name (ARN) of the scheduled action.
scheduledUpdateGroupAction_scheduledActionARN :: Lens.Lens' ScheduledUpdateGroupAction (Prelude.Maybe Prelude.Text)
scheduledUpdateGroupAction_scheduledActionARN :: Lens' ScheduledUpdateGroupAction (Maybe Text)
scheduledUpdateGroupAction_scheduledActionARN = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ScheduledUpdateGroupAction' {Maybe Text
scheduledActionARN :: Maybe Text
$sel:scheduledActionARN:ScheduledUpdateGroupAction' :: ScheduledUpdateGroupAction -> Maybe Text
scheduledActionARN} -> Maybe Text
scheduledActionARN) (\s :: ScheduledUpdateGroupAction
s@ScheduledUpdateGroupAction' {} Maybe Text
a -> ScheduledUpdateGroupAction
s {$sel:scheduledActionARN:ScheduledUpdateGroupAction' :: Maybe Text
scheduledActionARN = Maybe Text
a} :: ScheduledUpdateGroupAction)

-- | The name of the scheduled action.
scheduledUpdateGroupAction_scheduledActionName :: Lens.Lens' ScheduledUpdateGroupAction (Prelude.Maybe Prelude.Text)
scheduledUpdateGroupAction_scheduledActionName :: Lens' ScheduledUpdateGroupAction (Maybe Text)
scheduledUpdateGroupAction_scheduledActionName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ScheduledUpdateGroupAction' {Maybe Text
scheduledActionName :: Maybe Text
$sel:scheduledActionName:ScheduledUpdateGroupAction' :: ScheduledUpdateGroupAction -> Maybe Text
scheduledActionName} -> Maybe Text
scheduledActionName) (\s :: ScheduledUpdateGroupAction
s@ScheduledUpdateGroupAction' {} Maybe Text
a -> ScheduledUpdateGroupAction
s {$sel:scheduledActionName:ScheduledUpdateGroupAction' :: Maybe Text
scheduledActionName = Maybe Text
a} :: ScheduledUpdateGroupAction)

-- | The date and time in UTC for this action to start. For example,
-- @\"2019-06-01T00:00:00Z\"@.
scheduledUpdateGroupAction_startTime :: Lens.Lens' ScheduledUpdateGroupAction (Prelude.Maybe Prelude.UTCTime)
scheduledUpdateGroupAction_startTime :: Lens' ScheduledUpdateGroupAction (Maybe UTCTime)
scheduledUpdateGroupAction_startTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ScheduledUpdateGroupAction' {Maybe ISO8601
startTime :: Maybe ISO8601
$sel:startTime:ScheduledUpdateGroupAction' :: ScheduledUpdateGroupAction -> Maybe ISO8601
startTime} -> Maybe ISO8601
startTime) (\s :: ScheduledUpdateGroupAction
s@ScheduledUpdateGroupAction' {} Maybe ISO8601
a -> ScheduledUpdateGroupAction
s {$sel:startTime:ScheduledUpdateGroupAction' :: Maybe ISO8601
startTime = Maybe ISO8601
a} :: ScheduledUpdateGroupAction) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | This property is no longer used.
scheduledUpdateGroupAction_time :: Lens.Lens' ScheduledUpdateGroupAction (Prelude.Maybe Prelude.UTCTime)
scheduledUpdateGroupAction_time :: Lens' ScheduledUpdateGroupAction (Maybe UTCTime)
scheduledUpdateGroupAction_time = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ScheduledUpdateGroupAction' {Maybe ISO8601
time :: Maybe ISO8601
$sel:time:ScheduledUpdateGroupAction' :: ScheduledUpdateGroupAction -> Maybe ISO8601
time} -> Maybe ISO8601
time) (\s :: ScheduledUpdateGroupAction
s@ScheduledUpdateGroupAction' {} Maybe ISO8601
a -> ScheduledUpdateGroupAction
s {$sel:time:ScheduledUpdateGroupAction' :: Maybe ISO8601
time = Maybe ISO8601
a} :: ScheduledUpdateGroupAction) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The time zone for the cron expression.
scheduledUpdateGroupAction_timeZone :: Lens.Lens' ScheduledUpdateGroupAction (Prelude.Maybe Prelude.Text)
scheduledUpdateGroupAction_timeZone :: Lens' ScheduledUpdateGroupAction (Maybe Text)
scheduledUpdateGroupAction_timeZone = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ScheduledUpdateGroupAction' {Maybe Text
timeZone :: Maybe Text
$sel:timeZone:ScheduledUpdateGroupAction' :: ScheduledUpdateGroupAction -> Maybe Text
timeZone} -> Maybe Text
timeZone) (\s :: ScheduledUpdateGroupAction
s@ScheduledUpdateGroupAction' {} Maybe Text
a -> ScheduledUpdateGroupAction
s {$sel:timeZone:ScheduledUpdateGroupAction' :: Maybe Text
timeZone = Maybe Text
a} :: ScheduledUpdateGroupAction)

instance Data.FromXML ScheduledUpdateGroupAction where
  parseXML :: [Node] -> Either String ScheduledUpdateGroupAction
parseXML [Node]
x =
    Maybe Text
-> Maybe Int
-> Maybe ISO8601
-> Maybe Int
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe ISO8601
-> Maybe Text
-> ScheduledUpdateGroupAction
ScheduledUpdateGroupAction'
      forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"AutoScalingGroupName")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"DesiredCapacity")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"EndTime")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"MaxSize")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"MinSize")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"Recurrence")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"ScheduledActionARN")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"ScheduledActionName")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"StartTime")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"Time")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"TimeZone")

instance Prelude.Hashable ScheduledUpdateGroupAction where
  hashWithSalt :: Int -> ScheduledUpdateGroupAction -> Int
hashWithSalt Int
_salt ScheduledUpdateGroupAction' {Maybe Int
Maybe Text
Maybe ISO8601
timeZone :: Maybe Text
time :: Maybe ISO8601
startTime :: Maybe ISO8601
scheduledActionName :: Maybe Text
scheduledActionARN :: Maybe Text
recurrence :: Maybe Text
minSize :: Maybe Int
maxSize :: Maybe Int
endTime :: Maybe ISO8601
desiredCapacity :: Maybe Int
autoScalingGroupName :: Maybe Text
$sel:timeZone:ScheduledUpdateGroupAction' :: ScheduledUpdateGroupAction -> Maybe Text
$sel:time:ScheduledUpdateGroupAction' :: ScheduledUpdateGroupAction -> Maybe ISO8601
$sel:startTime:ScheduledUpdateGroupAction' :: ScheduledUpdateGroupAction -> Maybe ISO8601
$sel:scheduledActionName:ScheduledUpdateGroupAction' :: ScheduledUpdateGroupAction -> Maybe Text
$sel:scheduledActionARN:ScheduledUpdateGroupAction' :: ScheduledUpdateGroupAction -> Maybe Text
$sel:recurrence:ScheduledUpdateGroupAction' :: ScheduledUpdateGroupAction -> Maybe Text
$sel:minSize:ScheduledUpdateGroupAction' :: ScheduledUpdateGroupAction -> Maybe Int
$sel:maxSize:ScheduledUpdateGroupAction' :: ScheduledUpdateGroupAction -> Maybe Int
$sel:endTime:ScheduledUpdateGroupAction' :: ScheduledUpdateGroupAction -> Maybe ISO8601
$sel:desiredCapacity:ScheduledUpdateGroupAction' :: ScheduledUpdateGroupAction -> Maybe Int
$sel:autoScalingGroupName:ScheduledUpdateGroupAction' :: ScheduledUpdateGroupAction -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
autoScalingGroupName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
desiredCapacity
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ISO8601
endTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
maxSize
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
minSize
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
recurrence
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
scheduledActionARN
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
scheduledActionName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ISO8601
startTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ISO8601
time
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
timeZone

instance Prelude.NFData ScheduledUpdateGroupAction where
  rnf :: ScheduledUpdateGroupAction -> ()
rnf ScheduledUpdateGroupAction' {Maybe Int
Maybe Text
Maybe ISO8601
timeZone :: Maybe Text
time :: Maybe ISO8601
startTime :: Maybe ISO8601
scheduledActionName :: Maybe Text
scheduledActionARN :: Maybe Text
recurrence :: Maybe Text
minSize :: Maybe Int
maxSize :: Maybe Int
endTime :: Maybe ISO8601
desiredCapacity :: Maybe Int
autoScalingGroupName :: Maybe Text
$sel:timeZone:ScheduledUpdateGroupAction' :: ScheduledUpdateGroupAction -> Maybe Text
$sel:time:ScheduledUpdateGroupAction' :: ScheduledUpdateGroupAction -> Maybe ISO8601
$sel:startTime:ScheduledUpdateGroupAction' :: ScheduledUpdateGroupAction -> Maybe ISO8601
$sel:scheduledActionName:ScheduledUpdateGroupAction' :: ScheduledUpdateGroupAction -> Maybe Text
$sel:scheduledActionARN:ScheduledUpdateGroupAction' :: ScheduledUpdateGroupAction -> Maybe Text
$sel:recurrence:ScheduledUpdateGroupAction' :: ScheduledUpdateGroupAction -> Maybe Text
$sel:minSize:ScheduledUpdateGroupAction' :: ScheduledUpdateGroupAction -> Maybe Int
$sel:maxSize:ScheduledUpdateGroupAction' :: ScheduledUpdateGroupAction -> Maybe Int
$sel:endTime:ScheduledUpdateGroupAction' :: ScheduledUpdateGroupAction -> Maybe ISO8601
$sel:desiredCapacity:ScheduledUpdateGroupAction' :: ScheduledUpdateGroupAction -> Maybe Int
$sel:autoScalingGroupName:ScheduledUpdateGroupAction' :: ScheduledUpdateGroupAction -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
autoScalingGroupName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
desiredCapacity
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ISO8601
endTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
maxSize
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
minSize
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
recurrence
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
scheduledActionARN
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
scheduledActionName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ISO8601
startTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ISO8601
time
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
timeZone