{-# 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.DynamoDB.Types.ReplicaGlobalSecondaryIndexSettingsDescription
-- 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.DynamoDB.Types.ReplicaGlobalSecondaryIndexSettingsDescription where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.DynamoDB.Types.AttributeValue
import Amazonka.DynamoDB.Types.AutoScalingSettingsDescription
import Amazonka.DynamoDB.Types.IndexStatus
import Amazonka.DynamoDB.Types.WriteRequest
import qualified Amazonka.Prelude as Prelude

-- | Represents the properties of a global secondary index.
--
-- /See:/ 'newReplicaGlobalSecondaryIndexSettingsDescription' smart constructor.
data ReplicaGlobalSecondaryIndexSettingsDescription = ReplicaGlobalSecondaryIndexSettingsDescription'
  { -- | The current status of the global secondary index:
    --
    -- -   @CREATING@ - The global secondary index is being created.
    --
    -- -   @UPDATING@ - The global secondary index is being updated.
    --
    -- -   @DELETING@ - The global secondary index is being deleted.
    --
    -- -   @ACTIVE@ - The global secondary index is ready for use.
    ReplicaGlobalSecondaryIndexSettingsDescription -> Maybe IndexStatus
indexStatus :: Prelude.Maybe IndexStatus,
    -- | Auto scaling settings for a global secondary index replica\'s read
    -- capacity units.
    ReplicaGlobalSecondaryIndexSettingsDescription
-> Maybe AutoScalingSettingsDescription
provisionedReadCapacityAutoScalingSettings :: Prelude.Maybe AutoScalingSettingsDescription,
    -- | The maximum number of strongly consistent reads consumed per second
    -- before DynamoDB returns a @ThrottlingException@.
    ReplicaGlobalSecondaryIndexSettingsDescription -> Maybe Natural
provisionedReadCapacityUnits :: Prelude.Maybe Prelude.Natural,
    -- | Auto scaling settings for a global secondary index replica\'s write
    -- capacity units.
    ReplicaGlobalSecondaryIndexSettingsDescription
-> Maybe AutoScalingSettingsDescription
provisionedWriteCapacityAutoScalingSettings :: Prelude.Maybe AutoScalingSettingsDescription,
    -- | The maximum number of writes consumed per second before DynamoDB returns
    -- a @ThrottlingException@.
    ReplicaGlobalSecondaryIndexSettingsDescription -> Maybe Natural
provisionedWriteCapacityUnits :: Prelude.Maybe Prelude.Natural,
    -- | The name of the global secondary index. The name must be unique among
    -- all other indexes on this table.
    ReplicaGlobalSecondaryIndexSettingsDescription -> Text
indexName :: Prelude.Text
  }
  deriving (ReplicaGlobalSecondaryIndexSettingsDescription
-> ReplicaGlobalSecondaryIndexSettingsDescription -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ReplicaGlobalSecondaryIndexSettingsDescription
-> ReplicaGlobalSecondaryIndexSettingsDescription -> Bool
$c/= :: ReplicaGlobalSecondaryIndexSettingsDescription
-> ReplicaGlobalSecondaryIndexSettingsDescription -> Bool
== :: ReplicaGlobalSecondaryIndexSettingsDescription
-> ReplicaGlobalSecondaryIndexSettingsDescription -> Bool
$c== :: ReplicaGlobalSecondaryIndexSettingsDescription
-> ReplicaGlobalSecondaryIndexSettingsDescription -> Bool
Prelude.Eq, ReadPrec [ReplicaGlobalSecondaryIndexSettingsDescription]
ReadPrec ReplicaGlobalSecondaryIndexSettingsDescription
Int -> ReadS ReplicaGlobalSecondaryIndexSettingsDescription
ReadS [ReplicaGlobalSecondaryIndexSettingsDescription]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ReplicaGlobalSecondaryIndexSettingsDescription]
$creadListPrec :: ReadPrec [ReplicaGlobalSecondaryIndexSettingsDescription]
readPrec :: ReadPrec ReplicaGlobalSecondaryIndexSettingsDescription
$creadPrec :: ReadPrec ReplicaGlobalSecondaryIndexSettingsDescription
readList :: ReadS [ReplicaGlobalSecondaryIndexSettingsDescription]
$creadList :: ReadS [ReplicaGlobalSecondaryIndexSettingsDescription]
readsPrec :: Int -> ReadS ReplicaGlobalSecondaryIndexSettingsDescription
$creadsPrec :: Int -> ReadS ReplicaGlobalSecondaryIndexSettingsDescription
Prelude.Read, Int -> ReplicaGlobalSecondaryIndexSettingsDescription -> ShowS
[ReplicaGlobalSecondaryIndexSettingsDescription] -> ShowS
ReplicaGlobalSecondaryIndexSettingsDescription -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ReplicaGlobalSecondaryIndexSettingsDescription] -> ShowS
$cshowList :: [ReplicaGlobalSecondaryIndexSettingsDescription] -> ShowS
show :: ReplicaGlobalSecondaryIndexSettingsDescription -> String
$cshow :: ReplicaGlobalSecondaryIndexSettingsDescription -> String
showsPrec :: Int -> ReplicaGlobalSecondaryIndexSettingsDescription -> ShowS
$cshowsPrec :: Int -> ReplicaGlobalSecondaryIndexSettingsDescription -> ShowS
Prelude.Show, forall x.
Rep ReplicaGlobalSecondaryIndexSettingsDescription x
-> ReplicaGlobalSecondaryIndexSettingsDescription
forall x.
ReplicaGlobalSecondaryIndexSettingsDescription
-> Rep ReplicaGlobalSecondaryIndexSettingsDescription x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ReplicaGlobalSecondaryIndexSettingsDescription x
-> ReplicaGlobalSecondaryIndexSettingsDescription
$cfrom :: forall x.
ReplicaGlobalSecondaryIndexSettingsDescription
-> Rep ReplicaGlobalSecondaryIndexSettingsDescription x
Prelude.Generic)

-- |
-- Create a value of 'ReplicaGlobalSecondaryIndexSettingsDescription' 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:
--
-- 'indexStatus', 'replicaGlobalSecondaryIndexSettingsDescription_indexStatus' - The current status of the global secondary index:
--
-- -   @CREATING@ - The global secondary index is being created.
--
-- -   @UPDATING@ - The global secondary index is being updated.
--
-- -   @DELETING@ - The global secondary index is being deleted.
--
-- -   @ACTIVE@ - The global secondary index is ready for use.
--
-- 'provisionedReadCapacityAutoScalingSettings', 'replicaGlobalSecondaryIndexSettingsDescription_provisionedReadCapacityAutoScalingSettings' - Auto scaling settings for a global secondary index replica\'s read
-- capacity units.
--
-- 'provisionedReadCapacityUnits', 'replicaGlobalSecondaryIndexSettingsDescription_provisionedReadCapacityUnits' - The maximum number of strongly consistent reads consumed per second
-- before DynamoDB returns a @ThrottlingException@.
--
-- 'provisionedWriteCapacityAutoScalingSettings', 'replicaGlobalSecondaryIndexSettingsDescription_provisionedWriteCapacityAutoScalingSettings' - Auto scaling settings for a global secondary index replica\'s write
-- capacity units.
--
-- 'provisionedWriteCapacityUnits', 'replicaGlobalSecondaryIndexSettingsDescription_provisionedWriteCapacityUnits' - The maximum number of writes consumed per second before DynamoDB returns
-- a @ThrottlingException@.
--
-- 'indexName', 'replicaGlobalSecondaryIndexSettingsDescription_indexName' - The name of the global secondary index. The name must be unique among
-- all other indexes on this table.
newReplicaGlobalSecondaryIndexSettingsDescription ::
  -- | 'indexName'
  Prelude.Text ->
  ReplicaGlobalSecondaryIndexSettingsDescription
newReplicaGlobalSecondaryIndexSettingsDescription :: Text -> ReplicaGlobalSecondaryIndexSettingsDescription
newReplicaGlobalSecondaryIndexSettingsDescription
  Text
pIndexName_ =
    ReplicaGlobalSecondaryIndexSettingsDescription'
      { $sel:indexStatus:ReplicaGlobalSecondaryIndexSettingsDescription' :: Maybe IndexStatus
indexStatus =
          forall a. Maybe a
Prelude.Nothing,
        $sel:provisionedReadCapacityAutoScalingSettings:ReplicaGlobalSecondaryIndexSettingsDescription' :: Maybe AutoScalingSettingsDescription
provisionedReadCapacityAutoScalingSettings =
          forall a. Maybe a
Prelude.Nothing,
        $sel:provisionedReadCapacityUnits:ReplicaGlobalSecondaryIndexSettingsDescription' :: Maybe Natural
provisionedReadCapacityUnits =
          forall a. Maybe a
Prelude.Nothing,
        $sel:provisionedWriteCapacityAutoScalingSettings:ReplicaGlobalSecondaryIndexSettingsDescription' :: Maybe AutoScalingSettingsDescription
provisionedWriteCapacityAutoScalingSettings =
          forall a. Maybe a
Prelude.Nothing,
        $sel:provisionedWriteCapacityUnits:ReplicaGlobalSecondaryIndexSettingsDescription' :: Maybe Natural
provisionedWriteCapacityUnits =
          forall a. Maybe a
Prelude.Nothing,
        $sel:indexName:ReplicaGlobalSecondaryIndexSettingsDescription' :: Text
indexName = Text
pIndexName_
      }

-- | The current status of the global secondary index:
--
-- -   @CREATING@ - The global secondary index is being created.
--
-- -   @UPDATING@ - The global secondary index is being updated.
--
-- -   @DELETING@ - The global secondary index is being deleted.
--
-- -   @ACTIVE@ - The global secondary index is ready for use.
replicaGlobalSecondaryIndexSettingsDescription_indexStatus :: Lens.Lens' ReplicaGlobalSecondaryIndexSettingsDescription (Prelude.Maybe IndexStatus)
replicaGlobalSecondaryIndexSettingsDescription_indexStatus :: Lens'
  ReplicaGlobalSecondaryIndexSettingsDescription (Maybe IndexStatus)
replicaGlobalSecondaryIndexSettingsDescription_indexStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicaGlobalSecondaryIndexSettingsDescription' {Maybe IndexStatus
indexStatus :: Maybe IndexStatus
$sel:indexStatus:ReplicaGlobalSecondaryIndexSettingsDescription' :: ReplicaGlobalSecondaryIndexSettingsDescription -> Maybe IndexStatus
indexStatus} -> Maybe IndexStatus
indexStatus) (\s :: ReplicaGlobalSecondaryIndexSettingsDescription
s@ReplicaGlobalSecondaryIndexSettingsDescription' {} Maybe IndexStatus
a -> ReplicaGlobalSecondaryIndexSettingsDescription
s {$sel:indexStatus:ReplicaGlobalSecondaryIndexSettingsDescription' :: Maybe IndexStatus
indexStatus = Maybe IndexStatus
a} :: ReplicaGlobalSecondaryIndexSettingsDescription)

-- | Auto scaling settings for a global secondary index replica\'s read
-- capacity units.
replicaGlobalSecondaryIndexSettingsDescription_provisionedReadCapacityAutoScalingSettings :: Lens.Lens' ReplicaGlobalSecondaryIndexSettingsDescription (Prelude.Maybe AutoScalingSettingsDescription)
replicaGlobalSecondaryIndexSettingsDescription_provisionedReadCapacityAutoScalingSettings :: Lens'
  ReplicaGlobalSecondaryIndexSettingsDescription
  (Maybe AutoScalingSettingsDescription)
replicaGlobalSecondaryIndexSettingsDescription_provisionedReadCapacityAutoScalingSettings = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicaGlobalSecondaryIndexSettingsDescription' {Maybe AutoScalingSettingsDescription
provisionedReadCapacityAutoScalingSettings :: Maybe AutoScalingSettingsDescription
$sel:provisionedReadCapacityAutoScalingSettings:ReplicaGlobalSecondaryIndexSettingsDescription' :: ReplicaGlobalSecondaryIndexSettingsDescription
-> Maybe AutoScalingSettingsDescription
provisionedReadCapacityAutoScalingSettings} -> Maybe AutoScalingSettingsDescription
provisionedReadCapacityAutoScalingSettings) (\s :: ReplicaGlobalSecondaryIndexSettingsDescription
s@ReplicaGlobalSecondaryIndexSettingsDescription' {} Maybe AutoScalingSettingsDescription
a -> ReplicaGlobalSecondaryIndexSettingsDescription
s {$sel:provisionedReadCapacityAutoScalingSettings:ReplicaGlobalSecondaryIndexSettingsDescription' :: Maybe AutoScalingSettingsDescription
provisionedReadCapacityAutoScalingSettings = Maybe AutoScalingSettingsDescription
a} :: ReplicaGlobalSecondaryIndexSettingsDescription)

-- | The maximum number of strongly consistent reads consumed per second
-- before DynamoDB returns a @ThrottlingException@.
replicaGlobalSecondaryIndexSettingsDescription_provisionedReadCapacityUnits :: Lens.Lens' ReplicaGlobalSecondaryIndexSettingsDescription (Prelude.Maybe Prelude.Natural)
replicaGlobalSecondaryIndexSettingsDescription_provisionedReadCapacityUnits :: Lens'
  ReplicaGlobalSecondaryIndexSettingsDescription (Maybe Natural)
replicaGlobalSecondaryIndexSettingsDescription_provisionedReadCapacityUnits = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicaGlobalSecondaryIndexSettingsDescription' {Maybe Natural
provisionedReadCapacityUnits :: Maybe Natural
$sel:provisionedReadCapacityUnits:ReplicaGlobalSecondaryIndexSettingsDescription' :: ReplicaGlobalSecondaryIndexSettingsDescription -> Maybe Natural
provisionedReadCapacityUnits} -> Maybe Natural
provisionedReadCapacityUnits) (\s :: ReplicaGlobalSecondaryIndexSettingsDescription
s@ReplicaGlobalSecondaryIndexSettingsDescription' {} Maybe Natural
a -> ReplicaGlobalSecondaryIndexSettingsDescription
s {$sel:provisionedReadCapacityUnits:ReplicaGlobalSecondaryIndexSettingsDescription' :: Maybe Natural
provisionedReadCapacityUnits = Maybe Natural
a} :: ReplicaGlobalSecondaryIndexSettingsDescription)

-- | Auto scaling settings for a global secondary index replica\'s write
-- capacity units.
replicaGlobalSecondaryIndexSettingsDescription_provisionedWriteCapacityAutoScalingSettings :: Lens.Lens' ReplicaGlobalSecondaryIndexSettingsDescription (Prelude.Maybe AutoScalingSettingsDescription)
replicaGlobalSecondaryIndexSettingsDescription_provisionedWriteCapacityAutoScalingSettings :: Lens'
  ReplicaGlobalSecondaryIndexSettingsDescription
  (Maybe AutoScalingSettingsDescription)
replicaGlobalSecondaryIndexSettingsDescription_provisionedWriteCapacityAutoScalingSettings = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicaGlobalSecondaryIndexSettingsDescription' {Maybe AutoScalingSettingsDescription
provisionedWriteCapacityAutoScalingSettings :: Maybe AutoScalingSettingsDescription
$sel:provisionedWriteCapacityAutoScalingSettings:ReplicaGlobalSecondaryIndexSettingsDescription' :: ReplicaGlobalSecondaryIndexSettingsDescription
-> Maybe AutoScalingSettingsDescription
provisionedWriteCapacityAutoScalingSettings} -> Maybe AutoScalingSettingsDescription
provisionedWriteCapacityAutoScalingSettings) (\s :: ReplicaGlobalSecondaryIndexSettingsDescription
s@ReplicaGlobalSecondaryIndexSettingsDescription' {} Maybe AutoScalingSettingsDescription
a -> ReplicaGlobalSecondaryIndexSettingsDescription
s {$sel:provisionedWriteCapacityAutoScalingSettings:ReplicaGlobalSecondaryIndexSettingsDescription' :: Maybe AutoScalingSettingsDescription
provisionedWriteCapacityAutoScalingSettings = Maybe AutoScalingSettingsDescription
a} :: ReplicaGlobalSecondaryIndexSettingsDescription)

-- | The maximum number of writes consumed per second before DynamoDB returns
-- a @ThrottlingException@.
replicaGlobalSecondaryIndexSettingsDescription_provisionedWriteCapacityUnits :: Lens.Lens' ReplicaGlobalSecondaryIndexSettingsDescription (Prelude.Maybe Prelude.Natural)
replicaGlobalSecondaryIndexSettingsDescription_provisionedWriteCapacityUnits :: Lens'
  ReplicaGlobalSecondaryIndexSettingsDescription (Maybe Natural)
replicaGlobalSecondaryIndexSettingsDescription_provisionedWriteCapacityUnits = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicaGlobalSecondaryIndexSettingsDescription' {Maybe Natural
provisionedWriteCapacityUnits :: Maybe Natural
$sel:provisionedWriteCapacityUnits:ReplicaGlobalSecondaryIndexSettingsDescription' :: ReplicaGlobalSecondaryIndexSettingsDescription -> Maybe Natural
provisionedWriteCapacityUnits} -> Maybe Natural
provisionedWriteCapacityUnits) (\s :: ReplicaGlobalSecondaryIndexSettingsDescription
s@ReplicaGlobalSecondaryIndexSettingsDescription' {} Maybe Natural
a -> ReplicaGlobalSecondaryIndexSettingsDescription
s {$sel:provisionedWriteCapacityUnits:ReplicaGlobalSecondaryIndexSettingsDescription' :: Maybe Natural
provisionedWriteCapacityUnits = Maybe Natural
a} :: ReplicaGlobalSecondaryIndexSettingsDescription)

-- | The name of the global secondary index. The name must be unique among
-- all other indexes on this table.
replicaGlobalSecondaryIndexSettingsDescription_indexName :: Lens.Lens' ReplicaGlobalSecondaryIndexSettingsDescription Prelude.Text
replicaGlobalSecondaryIndexSettingsDescription_indexName :: Lens' ReplicaGlobalSecondaryIndexSettingsDescription Text
replicaGlobalSecondaryIndexSettingsDescription_indexName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicaGlobalSecondaryIndexSettingsDescription' {Text
indexName :: Text
$sel:indexName:ReplicaGlobalSecondaryIndexSettingsDescription' :: ReplicaGlobalSecondaryIndexSettingsDescription -> Text
indexName} -> Text
indexName) (\s :: ReplicaGlobalSecondaryIndexSettingsDescription
s@ReplicaGlobalSecondaryIndexSettingsDescription' {} Text
a -> ReplicaGlobalSecondaryIndexSettingsDescription
s {$sel:indexName:ReplicaGlobalSecondaryIndexSettingsDescription' :: Text
indexName = Text
a} :: ReplicaGlobalSecondaryIndexSettingsDescription)

instance
  Data.FromJSON
    ReplicaGlobalSecondaryIndexSettingsDescription
  where
  parseJSON :: Value -> Parser ReplicaGlobalSecondaryIndexSettingsDescription
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"ReplicaGlobalSecondaryIndexSettingsDescription"
      ( \Object
x ->
          Maybe IndexStatus
-> Maybe AutoScalingSettingsDescription
-> Maybe Natural
-> Maybe AutoScalingSettingsDescription
-> Maybe Natural
-> Text
-> ReplicaGlobalSecondaryIndexSettingsDescription
ReplicaGlobalSecondaryIndexSettingsDescription'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"IndexStatus")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ProvisionedReadCapacityAutoScalingSettings"
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ProvisionedReadCapacityUnits")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ProvisionedWriteCapacityAutoScalingSettings"
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ProvisionedWriteCapacityUnits")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"IndexName")
      )

instance
  Prelude.Hashable
    ReplicaGlobalSecondaryIndexSettingsDescription
  where
  hashWithSalt :: Int -> ReplicaGlobalSecondaryIndexSettingsDescription -> Int
hashWithSalt
    Int
_salt
    ReplicaGlobalSecondaryIndexSettingsDescription' {Maybe Natural
Maybe IndexStatus
Maybe AutoScalingSettingsDescription
Text
indexName :: Text
provisionedWriteCapacityUnits :: Maybe Natural
provisionedWriteCapacityAutoScalingSettings :: Maybe AutoScalingSettingsDescription
provisionedReadCapacityUnits :: Maybe Natural
provisionedReadCapacityAutoScalingSettings :: Maybe AutoScalingSettingsDescription
indexStatus :: Maybe IndexStatus
$sel:indexName:ReplicaGlobalSecondaryIndexSettingsDescription' :: ReplicaGlobalSecondaryIndexSettingsDescription -> Text
$sel:provisionedWriteCapacityUnits:ReplicaGlobalSecondaryIndexSettingsDescription' :: ReplicaGlobalSecondaryIndexSettingsDescription -> Maybe Natural
$sel:provisionedWriteCapacityAutoScalingSettings:ReplicaGlobalSecondaryIndexSettingsDescription' :: ReplicaGlobalSecondaryIndexSettingsDescription
-> Maybe AutoScalingSettingsDescription
$sel:provisionedReadCapacityUnits:ReplicaGlobalSecondaryIndexSettingsDescription' :: ReplicaGlobalSecondaryIndexSettingsDescription -> Maybe Natural
$sel:provisionedReadCapacityAutoScalingSettings:ReplicaGlobalSecondaryIndexSettingsDescription' :: ReplicaGlobalSecondaryIndexSettingsDescription
-> Maybe AutoScalingSettingsDescription
$sel:indexStatus:ReplicaGlobalSecondaryIndexSettingsDescription' :: ReplicaGlobalSecondaryIndexSettingsDescription -> Maybe IndexStatus
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe IndexStatus
indexStatus
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AutoScalingSettingsDescription
provisionedReadCapacityAutoScalingSettings
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
provisionedReadCapacityUnits
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AutoScalingSettingsDescription
provisionedWriteCapacityAutoScalingSettings
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
provisionedWriteCapacityUnits
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
indexName

instance
  Prelude.NFData
    ReplicaGlobalSecondaryIndexSettingsDescription
  where
  rnf :: ReplicaGlobalSecondaryIndexSettingsDescription -> ()
rnf
    ReplicaGlobalSecondaryIndexSettingsDescription' {Maybe Natural
Maybe IndexStatus
Maybe AutoScalingSettingsDescription
Text
indexName :: Text
provisionedWriteCapacityUnits :: Maybe Natural
provisionedWriteCapacityAutoScalingSettings :: Maybe AutoScalingSettingsDescription
provisionedReadCapacityUnits :: Maybe Natural
provisionedReadCapacityAutoScalingSettings :: Maybe AutoScalingSettingsDescription
indexStatus :: Maybe IndexStatus
$sel:indexName:ReplicaGlobalSecondaryIndexSettingsDescription' :: ReplicaGlobalSecondaryIndexSettingsDescription -> Text
$sel:provisionedWriteCapacityUnits:ReplicaGlobalSecondaryIndexSettingsDescription' :: ReplicaGlobalSecondaryIndexSettingsDescription -> Maybe Natural
$sel:provisionedWriteCapacityAutoScalingSettings:ReplicaGlobalSecondaryIndexSettingsDescription' :: ReplicaGlobalSecondaryIndexSettingsDescription
-> Maybe AutoScalingSettingsDescription
$sel:provisionedReadCapacityUnits:ReplicaGlobalSecondaryIndexSettingsDescription' :: ReplicaGlobalSecondaryIndexSettingsDescription -> Maybe Natural
$sel:provisionedReadCapacityAutoScalingSettings:ReplicaGlobalSecondaryIndexSettingsDescription' :: ReplicaGlobalSecondaryIndexSettingsDescription
-> Maybe AutoScalingSettingsDescription
$sel:indexStatus:ReplicaGlobalSecondaryIndexSettingsDescription' :: ReplicaGlobalSecondaryIndexSettingsDescription -> Maybe IndexStatus
..} =
      forall a. NFData a => a -> ()
Prelude.rnf Maybe IndexStatus
indexStatus
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
          Maybe AutoScalingSettingsDescription
provisionedReadCapacityAutoScalingSettings
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
provisionedReadCapacityUnits
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
          Maybe AutoScalingSettingsDescription
provisionedWriteCapacityAutoScalingSettings
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
provisionedWriteCapacityUnits
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
indexName