{-# 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.RDS.Types.ScalingConfiguration
-- 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.RDS.Types.ScalingConfiguration 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

-- | Contains the scaling configuration of an Aurora Serverless v1 DB
-- cluster.
--
-- For more information, see
-- <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html Using Amazon Aurora Serverless v1>
-- in the /Amazon Aurora User Guide/.
--
-- /See:/ 'newScalingConfiguration' smart constructor.
data ScalingConfiguration = ScalingConfiguration'
  { -- | A value that indicates whether to allow or disallow automatic pause for
    -- an Aurora DB cluster in @serverless@ DB engine mode. A DB cluster can be
    -- paused only when it\'s idle (it has no connections).
    --
    -- If a DB cluster is paused for more than seven days, the DB cluster might
    -- be backed up with a snapshot. In this case, the DB cluster is restored
    -- when there is a request to connect to it.
    ScalingConfiguration -> Maybe Bool
autoPause :: Prelude.Maybe Prelude.Bool,
    -- | The maximum capacity for an Aurora DB cluster in @serverless@ DB engine
    -- mode.
    --
    -- For Aurora MySQL, valid capacity values are @1@, @2@, @4@, @8@, @16@,
    -- @32@, @64@, @128@, and @256@.
    --
    -- For Aurora PostgreSQL, valid capacity values are @2@, @4@, @8@, @16@,
    -- @32@, @64@, @192@, and @384@.
    --
    -- The maximum capacity must be greater than or equal to the minimum
    -- capacity.
    ScalingConfiguration -> Maybe Int
maxCapacity :: Prelude.Maybe Prelude.Int,
    -- | The minimum capacity for an Aurora DB cluster in @serverless@ DB engine
    -- mode.
    --
    -- For Aurora MySQL, valid capacity values are @1@, @2@, @4@, @8@, @16@,
    -- @32@, @64@, @128@, and @256@.
    --
    -- For Aurora PostgreSQL, valid capacity values are @2@, @4@, @8@, @16@,
    -- @32@, @64@, @192@, and @384@.
    --
    -- The minimum capacity must be less than or equal to the maximum capacity.
    ScalingConfiguration -> Maybe Int
minCapacity :: Prelude.Maybe Prelude.Int,
    -- | The amount of time, in seconds, that Aurora Serverless v1 tries to find
    -- a scaling point to perform seamless scaling before enforcing the timeout
    -- action. The default is 300.
    --
    -- Specify a value between 60 and 600 seconds.
    ScalingConfiguration -> Maybe Int
secondsBeforeTimeout :: Prelude.Maybe Prelude.Int,
    -- | The time, in seconds, before an Aurora DB cluster in @serverless@ mode
    -- is paused.
    --
    -- Specify a value between 300 and 86,400 seconds.
    ScalingConfiguration -> Maybe Int
secondsUntilAutoPause :: Prelude.Maybe Prelude.Int,
    -- | The action to take when the timeout is reached, either
    -- @ForceApplyCapacityChange@ or @RollbackCapacityChange@.
    --
    -- @ForceApplyCapacityChange@ sets the capacity to the specified value as
    -- soon as possible.
    --
    -- @RollbackCapacityChange@, the default, ignores the capacity change if a
    -- scaling point isn\'t found in the timeout period.
    --
    -- If you specify @ForceApplyCapacityChange@, connections that prevent
    -- Aurora Serverless v1 from finding a scaling point might be dropped.
    --
    -- For more information, see
    -- <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.how-it-works.html#aurora-serverless.how-it-works.auto-scaling Autoscaling for Aurora Serverless v1>
    -- in the /Amazon Aurora User Guide/.
    ScalingConfiguration -> Maybe Text
timeoutAction :: Prelude.Maybe Prelude.Text
  }
  deriving (ScalingConfiguration -> ScalingConfiguration -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ScalingConfiguration -> ScalingConfiguration -> Bool
$c/= :: ScalingConfiguration -> ScalingConfiguration -> Bool
== :: ScalingConfiguration -> ScalingConfiguration -> Bool
$c== :: ScalingConfiguration -> ScalingConfiguration -> Bool
Prelude.Eq, ReadPrec [ScalingConfiguration]
ReadPrec ScalingConfiguration
Int -> ReadS ScalingConfiguration
ReadS [ScalingConfiguration]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ScalingConfiguration]
$creadListPrec :: ReadPrec [ScalingConfiguration]
readPrec :: ReadPrec ScalingConfiguration
$creadPrec :: ReadPrec ScalingConfiguration
readList :: ReadS [ScalingConfiguration]
$creadList :: ReadS [ScalingConfiguration]
readsPrec :: Int -> ReadS ScalingConfiguration
$creadsPrec :: Int -> ReadS ScalingConfiguration
Prelude.Read, Int -> ScalingConfiguration -> ShowS
[ScalingConfiguration] -> ShowS
ScalingConfiguration -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ScalingConfiguration] -> ShowS
$cshowList :: [ScalingConfiguration] -> ShowS
show :: ScalingConfiguration -> String
$cshow :: ScalingConfiguration -> String
showsPrec :: Int -> ScalingConfiguration -> ShowS
$cshowsPrec :: Int -> ScalingConfiguration -> ShowS
Prelude.Show, forall x. Rep ScalingConfiguration x -> ScalingConfiguration
forall x. ScalingConfiguration -> Rep ScalingConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ScalingConfiguration x -> ScalingConfiguration
$cfrom :: forall x. ScalingConfiguration -> Rep ScalingConfiguration x
Prelude.Generic)

-- |
-- Create a value of 'ScalingConfiguration' 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:
--
-- 'autoPause', 'scalingConfiguration_autoPause' - A value that indicates whether to allow or disallow automatic pause for
-- an Aurora DB cluster in @serverless@ DB engine mode. A DB cluster can be
-- paused only when it\'s idle (it has no connections).
--
-- If a DB cluster is paused for more than seven days, the DB cluster might
-- be backed up with a snapshot. In this case, the DB cluster is restored
-- when there is a request to connect to it.
--
-- 'maxCapacity', 'scalingConfiguration_maxCapacity' - The maximum capacity for an Aurora DB cluster in @serverless@ DB engine
-- mode.
--
-- For Aurora MySQL, valid capacity values are @1@, @2@, @4@, @8@, @16@,
-- @32@, @64@, @128@, and @256@.
--
-- For Aurora PostgreSQL, valid capacity values are @2@, @4@, @8@, @16@,
-- @32@, @64@, @192@, and @384@.
--
-- The maximum capacity must be greater than or equal to the minimum
-- capacity.
--
-- 'minCapacity', 'scalingConfiguration_minCapacity' - The minimum capacity for an Aurora DB cluster in @serverless@ DB engine
-- mode.
--
-- For Aurora MySQL, valid capacity values are @1@, @2@, @4@, @8@, @16@,
-- @32@, @64@, @128@, and @256@.
--
-- For Aurora PostgreSQL, valid capacity values are @2@, @4@, @8@, @16@,
-- @32@, @64@, @192@, and @384@.
--
-- The minimum capacity must be less than or equal to the maximum capacity.
--
-- 'secondsBeforeTimeout', 'scalingConfiguration_secondsBeforeTimeout' - The amount of time, in seconds, that Aurora Serverless v1 tries to find
-- a scaling point to perform seamless scaling before enforcing the timeout
-- action. The default is 300.
--
-- Specify a value between 60 and 600 seconds.
--
-- 'secondsUntilAutoPause', 'scalingConfiguration_secondsUntilAutoPause' - The time, in seconds, before an Aurora DB cluster in @serverless@ mode
-- is paused.
--
-- Specify a value between 300 and 86,400 seconds.
--
-- 'timeoutAction', 'scalingConfiguration_timeoutAction' - The action to take when the timeout is reached, either
-- @ForceApplyCapacityChange@ or @RollbackCapacityChange@.
--
-- @ForceApplyCapacityChange@ sets the capacity to the specified value as
-- soon as possible.
--
-- @RollbackCapacityChange@, the default, ignores the capacity change if a
-- scaling point isn\'t found in the timeout period.
--
-- If you specify @ForceApplyCapacityChange@, connections that prevent
-- Aurora Serverless v1 from finding a scaling point might be dropped.
--
-- For more information, see
-- <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.how-it-works.html#aurora-serverless.how-it-works.auto-scaling Autoscaling for Aurora Serverless v1>
-- in the /Amazon Aurora User Guide/.
newScalingConfiguration ::
  ScalingConfiguration
newScalingConfiguration :: ScalingConfiguration
newScalingConfiguration =
  ScalingConfiguration'
    { $sel:autoPause:ScalingConfiguration' :: Maybe Bool
autoPause = forall a. Maybe a
Prelude.Nothing,
      $sel:maxCapacity:ScalingConfiguration' :: Maybe Int
maxCapacity = forall a. Maybe a
Prelude.Nothing,
      $sel:minCapacity:ScalingConfiguration' :: Maybe Int
minCapacity = forall a. Maybe a
Prelude.Nothing,
      $sel:secondsBeforeTimeout:ScalingConfiguration' :: Maybe Int
secondsBeforeTimeout = forall a. Maybe a
Prelude.Nothing,
      $sel:secondsUntilAutoPause:ScalingConfiguration' :: Maybe Int
secondsUntilAutoPause = forall a. Maybe a
Prelude.Nothing,
      $sel:timeoutAction:ScalingConfiguration' :: Maybe Text
timeoutAction = forall a. Maybe a
Prelude.Nothing
    }

-- | A value that indicates whether to allow or disallow automatic pause for
-- an Aurora DB cluster in @serverless@ DB engine mode. A DB cluster can be
-- paused only when it\'s idle (it has no connections).
--
-- If a DB cluster is paused for more than seven days, the DB cluster might
-- be backed up with a snapshot. In this case, the DB cluster is restored
-- when there is a request to connect to it.
scalingConfiguration_autoPause :: Lens.Lens' ScalingConfiguration (Prelude.Maybe Prelude.Bool)
scalingConfiguration_autoPause :: Lens' ScalingConfiguration (Maybe Bool)
scalingConfiguration_autoPause = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ScalingConfiguration' {Maybe Bool
autoPause :: Maybe Bool
$sel:autoPause:ScalingConfiguration' :: ScalingConfiguration -> Maybe Bool
autoPause} -> Maybe Bool
autoPause) (\s :: ScalingConfiguration
s@ScalingConfiguration' {} Maybe Bool
a -> ScalingConfiguration
s {$sel:autoPause:ScalingConfiguration' :: Maybe Bool
autoPause = Maybe Bool
a} :: ScalingConfiguration)

-- | The maximum capacity for an Aurora DB cluster in @serverless@ DB engine
-- mode.
--
-- For Aurora MySQL, valid capacity values are @1@, @2@, @4@, @8@, @16@,
-- @32@, @64@, @128@, and @256@.
--
-- For Aurora PostgreSQL, valid capacity values are @2@, @4@, @8@, @16@,
-- @32@, @64@, @192@, and @384@.
--
-- The maximum capacity must be greater than or equal to the minimum
-- capacity.
scalingConfiguration_maxCapacity :: Lens.Lens' ScalingConfiguration (Prelude.Maybe Prelude.Int)
scalingConfiguration_maxCapacity :: Lens' ScalingConfiguration (Maybe Int)
scalingConfiguration_maxCapacity = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ScalingConfiguration' {Maybe Int
maxCapacity :: Maybe Int
$sel:maxCapacity:ScalingConfiguration' :: ScalingConfiguration -> Maybe Int
maxCapacity} -> Maybe Int
maxCapacity) (\s :: ScalingConfiguration
s@ScalingConfiguration' {} Maybe Int
a -> ScalingConfiguration
s {$sel:maxCapacity:ScalingConfiguration' :: Maybe Int
maxCapacity = Maybe Int
a} :: ScalingConfiguration)

-- | The minimum capacity for an Aurora DB cluster in @serverless@ DB engine
-- mode.
--
-- For Aurora MySQL, valid capacity values are @1@, @2@, @4@, @8@, @16@,
-- @32@, @64@, @128@, and @256@.
--
-- For Aurora PostgreSQL, valid capacity values are @2@, @4@, @8@, @16@,
-- @32@, @64@, @192@, and @384@.
--
-- The minimum capacity must be less than or equal to the maximum capacity.
scalingConfiguration_minCapacity :: Lens.Lens' ScalingConfiguration (Prelude.Maybe Prelude.Int)
scalingConfiguration_minCapacity :: Lens' ScalingConfiguration (Maybe Int)
scalingConfiguration_minCapacity = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ScalingConfiguration' {Maybe Int
minCapacity :: Maybe Int
$sel:minCapacity:ScalingConfiguration' :: ScalingConfiguration -> Maybe Int
minCapacity} -> Maybe Int
minCapacity) (\s :: ScalingConfiguration
s@ScalingConfiguration' {} Maybe Int
a -> ScalingConfiguration
s {$sel:minCapacity:ScalingConfiguration' :: Maybe Int
minCapacity = Maybe Int
a} :: ScalingConfiguration)

-- | The amount of time, in seconds, that Aurora Serverless v1 tries to find
-- a scaling point to perform seamless scaling before enforcing the timeout
-- action. The default is 300.
--
-- Specify a value between 60 and 600 seconds.
scalingConfiguration_secondsBeforeTimeout :: Lens.Lens' ScalingConfiguration (Prelude.Maybe Prelude.Int)
scalingConfiguration_secondsBeforeTimeout :: Lens' ScalingConfiguration (Maybe Int)
scalingConfiguration_secondsBeforeTimeout = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ScalingConfiguration' {Maybe Int
secondsBeforeTimeout :: Maybe Int
$sel:secondsBeforeTimeout:ScalingConfiguration' :: ScalingConfiguration -> Maybe Int
secondsBeforeTimeout} -> Maybe Int
secondsBeforeTimeout) (\s :: ScalingConfiguration
s@ScalingConfiguration' {} Maybe Int
a -> ScalingConfiguration
s {$sel:secondsBeforeTimeout:ScalingConfiguration' :: Maybe Int
secondsBeforeTimeout = Maybe Int
a} :: ScalingConfiguration)

-- | The time, in seconds, before an Aurora DB cluster in @serverless@ mode
-- is paused.
--
-- Specify a value between 300 and 86,400 seconds.
scalingConfiguration_secondsUntilAutoPause :: Lens.Lens' ScalingConfiguration (Prelude.Maybe Prelude.Int)
scalingConfiguration_secondsUntilAutoPause :: Lens' ScalingConfiguration (Maybe Int)
scalingConfiguration_secondsUntilAutoPause = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ScalingConfiguration' {Maybe Int
secondsUntilAutoPause :: Maybe Int
$sel:secondsUntilAutoPause:ScalingConfiguration' :: ScalingConfiguration -> Maybe Int
secondsUntilAutoPause} -> Maybe Int
secondsUntilAutoPause) (\s :: ScalingConfiguration
s@ScalingConfiguration' {} Maybe Int
a -> ScalingConfiguration
s {$sel:secondsUntilAutoPause:ScalingConfiguration' :: Maybe Int
secondsUntilAutoPause = Maybe Int
a} :: ScalingConfiguration)

-- | The action to take when the timeout is reached, either
-- @ForceApplyCapacityChange@ or @RollbackCapacityChange@.
--
-- @ForceApplyCapacityChange@ sets the capacity to the specified value as
-- soon as possible.
--
-- @RollbackCapacityChange@, the default, ignores the capacity change if a
-- scaling point isn\'t found in the timeout period.
--
-- If you specify @ForceApplyCapacityChange@, connections that prevent
-- Aurora Serverless v1 from finding a scaling point might be dropped.
--
-- For more information, see
-- <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.how-it-works.html#aurora-serverless.how-it-works.auto-scaling Autoscaling for Aurora Serverless v1>
-- in the /Amazon Aurora User Guide/.
scalingConfiguration_timeoutAction :: Lens.Lens' ScalingConfiguration (Prelude.Maybe Prelude.Text)
scalingConfiguration_timeoutAction :: Lens' ScalingConfiguration (Maybe Text)
scalingConfiguration_timeoutAction = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ScalingConfiguration' {Maybe Text
timeoutAction :: Maybe Text
$sel:timeoutAction:ScalingConfiguration' :: ScalingConfiguration -> Maybe Text
timeoutAction} -> Maybe Text
timeoutAction) (\s :: ScalingConfiguration
s@ScalingConfiguration' {} Maybe Text
a -> ScalingConfiguration
s {$sel:timeoutAction:ScalingConfiguration' :: Maybe Text
timeoutAction = Maybe Text
a} :: ScalingConfiguration)

instance Prelude.Hashable ScalingConfiguration where
  hashWithSalt :: Int -> ScalingConfiguration -> Int
hashWithSalt Int
_salt ScalingConfiguration' {Maybe Bool
Maybe Int
Maybe Text
timeoutAction :: Maybe Text
secondsUntilAutoPause :: Maybe Int
secondsBeforeTimeout :: Maybe Int
minCapacity :: Maybe Int
maxCapacity :: Maybe Int
autoPause :: Maybe Bool
$sel:timeoutAction:ScalingConfiguration' :: ScalingConfiguration -> Maybe Text
$sel:secondsUntilAutoPause:ScalingConfiguration' :: ScalingConfiguration -> Maybe Int
$sel:secondsBeforeTimeout:ScalingConfiguration' :: ScalingConfiguration -> Maybe Int
$sel:minCapacity:ScalingConfiguration' :: ScalingConfiguration -> Maybe Int
$sel:maxCapacity:ScalingConfiguration' :: ScalingConfiguration -> Maybe Int
$sel:autoPause:ScalingConfiguration' :: ScalingConfiguration -> Maybe Bool
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
autoPause
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
maxCapacity
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
minCapacity
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
secondsBeforeTimeout
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
secondsUntilAutoPause
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
timeoutAction

instance Prelude.NFData ScalingConfiguration where
  rnf :: ScalingConfiguration -> ()
rnf ScalingConfiguration' {Maybe Bool
Maybe Int
Maybe Text
timeoutAction :: Maybe Text
secondsUntilAutoPause :: Maybe Int
secondsBeforeTimeout :: Maybe Int
minCapacity :: Maybe Int
maxCapacity :: Maybe Int
autoPause :: Maybe Bool
$sel:timeoutAction:ScalingConfiguration' :: ScalingConfiguration -> Maybe Text
$sel:secondsUntilAutoPause:ScalingConfiguration' :: ScalingConfiguration -> Maybe Int
$sel:secondsBeforeTimeout:ScalingConfiguration' :: ScalingConfiguration -> Maybe Int
$sel:minCapacity:ScalingConfiguration' :: ScalingConfiguration -> Maybe Int
$sel:maxCapacity:ScalingConfiguration' :: ScalingConfiguration -> Maybe Int
$sel:autoPause:ScalingConfiguration' :: ScalingConfiguration -> Maybe Bool
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
autoPause
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
maxCapacity
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
minCapacity
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
secondsBeforeTimeout
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
secondsUntilAutoPause
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
timeoutAction

instance Data.ToQuery ScalingConfiguration where
  toQuery :: ScalingConfiguration -> QueryString
toQuery ScalingConfiguration' {Maybe Bool
Maybe Int
Maybe Text
timeoutAction :: Maybe Text
secondsUntilAutoPause :: Maybe Int
secondsBeforeTimeout :: Maybe Int
minCapacity :: Maybe Int
maxCapacity :: Maybe Int
autoPause :: Maybe Bool
$sel:timeoutAction:ScalingConfiguration' :: ScalingConfiguration -> Maybe Text
$sel:secondsUntilAutoPause:ScalingConfiguration' :: ScalingConfiguration -> Maybe Int
$sel:secondsBeforeTimeout:ScalingConfiguration' :: ScalingConfiguration -> Maybe Int
$sel:minCapacity:ScalingConfiguration' :: ScalingConfiguration -> Maybe Int
$sel:maxCapacity:ScalingConfiguration' :: ScalingConfiguration -> Maybe Int
$sel:autoPause:ScalingConfiguration' :: ScalingConfiguration -> Maybe Bool
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"AutoPause" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Bool
autoPause,
        ByteString
"MaxCapacity" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Int
maxCapacity,
        ByteString
"MinCapacity" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Int
minCapacity,
        ByteString
"SecondsBeforeTimeout" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Int
secondsBeforeTimeout,
        ByteString
"SecondsUntilAutoPause"
          forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Int
secondsUntilAutoPause,
        ByteString
"TimeoutAction" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
timeoutAction
      ]