{-# 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.ServerlessV2ScalingConfigurationInfo -- 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.ServerlessV2ScalingConfigurationInfo 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 -- | Shows the scaling configuration for an Aurora Serverless v2 DB cluster. -- -- For more information, see -- -- in the /Amazon Aurora User Guide/. -- -- /See:/ 'newServerlessV2ScalingConfigurationInfo' smart constructor. data ServerlessV2ScalingConfigurationInfo = ServerlessV2ScalingConfigurationInfo' { -- | The maximum number of Aurora capacity units (ACUs) for a DB instance in -- an Aurora Serverless v2 cluster. You can specify ACU values in half-step -- increments, such as 40, 40.5, 41, and so on. The largest value that you -- can use is 128. maxCapacity :: Prelude.Maybe Prelude.Double, -- | The minimum number of Aurora capacity units (ACUs) for a DB instance in -- an Aurora Serverless v2 cluster. You can specify ACU values in half-step -- increments, such as 8, 8.5, 9, and so on. The smallest value that you -- can use is 0.5. minCapacity :: Prelude.Maybe Prelude.Double } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'ServerlessV2ScalingConfigurationInfo' with all optional fields omitted. -- -- Use or to modify other optional fields. -- -- The following record fields are available, with the corresponding lenses provided -- for backwards compatibility: -- -- 'maxCapacity', 'serverlessV2ScalingConfigurationInfo_maxCapacity' - The maximum number of Aurora capacity units (ACUs) for a DB instance in -- an Aurora Serverless v2 cluster. You can specify ACU values in half-step -- increments, such as 40, 40.5, 41, and so on. The largest value that you -- can use is 128. -- -- 'minCapacity', 'serverlessV2ScalingConfigurationInfo_minCapacity' - The minimum number of Aurora capacity units (ACUs) for a DB instance in -- an Aurora Serverless v2 cluster. You can specify ACU values in half-step -- increments, such as 8, 8.5, 9, and so on. The smallest value that you -- can use is 0.5. newServerlessV2ScalingConfigurationInfo :: ServerlessV2ScalingConfigurationInfo newServerlessV2ScalingConfigurationInfo = ServerlessV2ScalingConfigurationInfo' { maxCapacity = Prelude.Nothing, minCapacity = Prelude.Nothing } -- | The maximum number of Aurora capacity units (ACUs) for a DB instance in -- an Aurora Serverless v2 cluster. You can specify ACU values in half-step -- increments, such as 40, 40.5, 41, and so on. The largest value that you -- can use is 128. serverlessV2ScalingConfigurationInfo_maxCapacity :: Lens.Lens' ServerlessV2ScalingConfigurationInfo (Prelude.Maybe Prelude.Double) serverlessV2ScalingConfigurationInfo_maxCapacity = Lens.lens (\ServerlessV2ScalingConfigurationInfo' {maxCapacity} -> maxCapacity) (\s@ServerlessV2ScalingConfigurationInfo' {} a -> s {maxCapacity = a} :: ServerlessV2ScalingConfigurationInfo) -- | The minimum number of Aurora capacity units (ACUs) for a DB instance in -- an Aurora Serverless v2 cluster. You can specify ACU values in half-step -- increments, such as 8, 8.5, 9, and so on. The smallest value that you -- can use is 0.5. serverlessV2ScalingConfigurationInfo_minCapacity :: Lens.Lens' ServerlessV2ScalingConfigurationInfo (Prelude.Maybe Prelude.Double) serverlessV2ScalingConfigurationInfo_minCapacity = Lens.lens (\ServerlessV2ScalingConfigurationInfo' {minCapacity} -> minCapacity) (\s@ServerlessV2ScalingConfigurationInfo' {} a -> s {minCapacity = a} :: ServerlessV2ScalingConfigurationInfo) instance Data.FromXML ServerlessV2ScalingConfigurationInfo where parseXML x = ServerlessV2ScalingConfigurationInfo' Prelude.<$> (x Data..@? "MaxCapacity") Prelude.<*> (x Data..@? "MinCapacity") instance Prelude.Hashable ServerlessV2ScalingConfigurationInfo where hashWithSalt _salt ServerlessV2ScalingConfigurationInfo' {..} = _salt `Prelude.hashWithSalt` maxCapacity `Prelude.hashWithSalt` minCapacity instance Prelude.NFData ServerlessV2ScalingConfigurationInfo where rnf ServerlessV2ScalingConfigurationInfo' {..} = Prelude.rnf maxCapacity `Prelude.seq` Prelude.rnf minCapacity