{-# 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.ReplicaDescription
-- 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.ReplicaDescription 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.ProvisionedThroughputOverride
import Amazonka.DynamoDB.Types.ReplicaGlobalSecondaryIndexDescription
import Amazonka.DynamoDB.Types.ReplicaStatus
import Amazonka.DynamoDB.Types.TableClassSummary
import Amazonka.DynamoDB.Types.WriteRequest
import qualified Amazonka.Prelude as Prelude

-- | Contains the details of the replica.
--
-- /See:/ 'newReplicaDescription' smart constructor.
data ReplicaDescription = ReplicaDescription'
  { -- | Replica-specific global secondary index settings.
    ReplicaDescription
-> Maybe [ReplicaGlobalSecondaryIndexDescription]
globalSecondaryIndexes :: Prelude.Maybe [ReplicaGlobalSecondaryIndexDescription],
    -- | The KMS key of the replica that will be used for KMS encryption.
    ReplicaDescription -> Maybe Text
kmsMasterKeyId :: Prelude.Maybe Prelude.Text,
    -- | Replica-specific provisioned throughput. If not described, uses the
    -- source table\'s provisioned throughput settings.
    ReplicaDescription -> Maybe ProvisionedThroughputOverride
provisionedThroughputOverride :: Prelude.Maybe ProvisionedThroughputOverride,
    -- | The name of the Region.
    ReplicaDescription -> Maybe Text
regionName :: Prelude.Maybe Prelude.Text,
    -- | The time at which the replica was first detected as inaccessible. To
    -- determine cause of inaccessibility check the @ReplicaStatus@ property.
    ReplicaDescription -> Maybe POSIX
replicaInaccessibleDateTime :: Prelude.Maybe Data.POSIX,
    -- | The current state of the replica:
    --
    -- -   @CREATING@ - The replica is being created.
    --
    -- -   @UPDATING@ - The replica is being updated.
    --
    -- -   @DELETING@ - The replica is being deleted.
    --
    -- -   @ACTIVE@ - The replica is ready for use.
    --
    -- -   @REGION_DISABLED@ - The replica is inaccessible because the Amazon
    --     Web Services Region has been disabled.
    --
    --     If the Amazon Web Services Region remains inaccessible for more than
    --     20 hours, DynamoDB will remove this replica from the replication
    --     group. The replica will not be deleted and replication will stop
    --     from and to this region.
    --
    -- -   @INACCESSIBLE_ENCRYPTION_CREDENTIALS @ - The KMS key used to encrypt
    --     the table is inaccessible.
    --
    --     If the KMS key remains inaccessible for more than 20 hours, DynamoDB
    --     will remove this replica from the replication group. The replica
    --     will not be deleted and replication will stop from and to this
    --     region.
    ReplicaDescription -> Maybe ReplicaStatus
replicaStatus :: Prelude.Maybe ReplicaStatus,
    -- | Detailed information about the replica status.
    ReplicaDescription -> Maybe Text
replicaStatusDescription :: Prelude.Maybe Prelude.Text,
    -- | Specifies the progress of a Create, Update, or Delete action on the
    -- replica as a percentage.
    ReplicaDescription -> Maybe Text
replicaStatusPercentProgress :: Prelude.Maybe Prelude.Text,
    ReplicaDescription -> Maybe TableClassSummary
replicaTableClassSummary :: Prelude.Maybe TableClassSummary
  }
  deriving (ReplicaDescription -> ReplicaDescription -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ReplicaDescription -> ReplicaDescription -> Bool
$c/= :: ReplicaDescription -> ReplicaDescription -> Bool
== :: ReplicaDescription -> ReplicaDescription -> Bool
$c== :: ReplicaDescription -> ReplicaDescription -> Bool
Prelude.Eq, ReadPrec [ReplicaDescription]
ReadPrec ReplicaDescription
Int -> ReadS ReplicaDescription
ReadS [ReplicaDescription]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ReplicaDescription]
$creadListPrec :: ReadPrec [ReplicaDescription]
readPrec :: ReadPrec ReplicaDescription
$creadPrec :: ReadPrec ReplicaDescription
readList :: ReadS [ReplicaDescription]
$creadList :: ReadS [ReplicaDescription]
readsPrec :: Int -> ReadS ReplicaDescription
$creadsPrec :: Int -> ReadS ReplicaDescription
Prelude.Read, Int -> ReplicaDescription -> ShowS
[ReplicaDescription] -> ShowS
ReplicaDescription -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ReplicaDescription] -> ShowS
$cshowList :: [ReplicaDescription] -> ShowS
show :: ReplicaDescription -> String
$cshow :: ReplicaDescription -> String
showsPrec :: Int -> ReplicaDescription -> ShowS
$cshowsPrec :: Int -> ReplicaDescription -> ShowS
Prelude.Show, forall x. Rep ReplicaDescription x -> ReplicaDescription
forall x. ReplicaDescription -> Rep ReplicaDescription x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ReplicaDescription x -> ReplicaDescription
$cfrom :: forall x. ReplicaDescription -> Rep ReplicaDescription x
Prelude.Generic)

-- |
-- Create a value of 'ReplicaDescription' 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:
--
-- 'globalSecondaryIndexes', 'replicaDescription_globalSecondaryIndexes' - Replica-specific global secondary index settings.
--
-- 'kmsMasterKeyId', 'replicaDescription_kmsMasterKeyId' - The KMS key of the replica that will be used for KMS encryption.
--
-- 'provisionedThroughputOverride', 'replicaDescription_provisionedThroughputOverride' - Replica-specific provisioned throughput. If not described, uses the
-- source table\'s provisioned throughput settings.
--
-- 'regionName', 'replicaDescription_regionName' - The name of the Region.
--
-- 'replicaInaccessibleDateTime', 'replicaDescription_replicaInaccessibleDateTime' - The time at which the replica was first detected as inaccessible. To
-- determine cause of inaccessibility check the @ReplicaStatus@ property.
--
-- 'replicaStatus', 'replicaDescription_replicaStatus' - The current state of the replica:
--
-- -   @CREATING@ - The replica is being created.
--
-- -   @UPDATING@ - The replica is being updated.
--
-- -   @DELETING@ - The replica is being deleted.
--
-- -   @ACTIVE@ - The replica is ready for use.
--
-- -   @REGION_DISABLED@ - The replica is inaccessible because the Amazon
--     Web Services Region has been disabled.
--
--     If the Amazon Web Services Region remains inaccessible for more than
--     20 hours, DynamoDB will remove this replica from the replication
--     group. The replica will not be deleted and replication will stop
--     from and to this region.
--
-- -   @INACCESSIBLE_ENCRYPTION_CREDENTIALS @ - The KMS key used to encrypt
--     the table is inaccessible.
--
--     If the KMS key remains inaccessible for more than 20 hours, DynamoDB
--     will remove this replica from the replication group. The replica
--     will not be deleted and replication will stop from and to this
--     region.
--
-- 'replicaStatusDescription', 'replicaDescription_replicaStatusDescription' - Detailed information about the replica status.
--
-- 'replicaStatusPercentProgress', 'replicaDescription_replicaStatusPercentProgress' - Specifies the progress of a Create, Update, or Delete action on the
-- replica as a percentage.
--
-- 'replicaTableClassSummary', 'replicaDescription_replicaTableClassSummary' - Undocumented member.
newReplicaDescription ::
  ReplicaDescription
newReplicaDescription :: ReplicaDescription
newReplicaDescription =
  ReplicaDescription'
    { $sel:globalSecondaryIndexes:ReplicaDescription' :: Maybe [ReplicaGlobalSecondaryIndexDescription]
globalSecondaryIndexes =
        forall a. Maybe a
Prelude.Nothing,
      $sel:kmsMasterKeyId:ReplicaDescription' :: Maybe Text
kmsMasterKeyId = forall a. Maybe a
Prelude.Nothing,
      $sel:provisionedThroughputOverride:ReplicaDescription' :: Maybe ProvisionedThroughputOverride
provisionedThroughputOverride = forall a. Maybe a
Prelude.Nothing,
      $sel:regionName:ReplicaDescription' :: Maybe Text
regionName = forall a. Maybe a
Prelude.Nothing,
      $sel:replicaInaccessibleDateTime:ReplicaDescription' :: Maybe POSIX
replicaInaccessibleDateTime = forall a. Maybe a
Prelude.Nothing,
      $sel:replicaStatus:ReplicaDescription' :: Maybe ReplicaStatus
replicaStatus = forall a. Maybe a
Prelude.Nothing,
      $sel:replicaStatusDescription:ReplicaDescription' :: Maybe Text
replicaStatusDescription = forall a. Maybe a
Prelude.Nothing,
      $sel:replicaStatusPercentProgress:ReplicaDescription' :: Maybe Text
replicaStatusPercentProgress = forall a. Maybe a
Prelude.Nothing,
      $sel:replicaTableClassSummary:ReplicaDescription' :: Maybe TableClassSummary
replicaTableClassSummary = forall a. Maybe a
Prelude.Nothing
    }

-- | Replica-specific global secondary index settings.
replicaDescription_globalSecondaryIndexes :: Lens.Lens' ReplicaDescription (Prelude.Maybe [ReplicaGlobalSecondaryIndexDescription])
replicaDescription_globalSecondaryIndexes :: Lens'
  ReplicaDescription (Maybe [ReplicaGlobalSecondaryIndexDescription])
replicaDescription_globalSecondaryIndexes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicaDescription' {Maybe [ReplicaGlobalSecondaryIndexDescription]
globalSecondaryIndexes :: Maybe [ReplicaGlobalSecondaryIndexDescription]
$sel:globalSecondaryIndexes:ReplicaDescription' :: ReplicaDescription
-> Maybe [ReplicaGlobalSecondaryIndexDescription]
globalSecondaryIndexes} -> Maybe [ReplicaGlobalSecondaryIndexDescription]
globalSecondaryIndexes) (\s :: ReplicaDescription
s@ReplicaDescription' {} Maybe [ReplicaGlobalSecondaryIndexDescription]
a -> ReplicaDescription
s {$sel:globalSecondaryIndexes:ReplicaDescription' :: Maybe [ReplicaGlobalSecondaryIndexDescription]
globalSecondaryIndexes = Maybe [ReplicaGlobalSecondaryIndexDescription]
a} :: ReplicaDescription) 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 s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The KMS key of the replica that will be used for KMS encryption.
replicaDescription_kmsMasterKeyId :: Lens.Lens' ReplicaDescription (Prelude.Maybe Prelude.Text)
replicaDescription_kmsMasterKeyId :: Lens' ReplicaDescription (Maybe Text)
replicaDescription_kmsMasterKeyId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicaDescription' {Maybe Text
kmsMasterKeyId :: Maybe Text
$sel:kmsMasterKeyId:ReplicaDescription' :: ReplicaDescription -> Maybe Text
kmsMasterKeyId} -> Maybe Text
kmsMasterKeyId) (\s :: ReplicaDescription
s@ReplicaDescription' {} Maybe Text
a -> ReplicaDescription
s {$sel:kmsMasterKeyId:ReplicaDescription' :: Maybe Text
kmsMasterKeyId = Maybe Text
a} :: ReplicaDescription)

-- | Replica-specific provisioned throughput. If not described, uses the
-- source table\'s provisioned throughput settings.
replicaDescription_provisionedThroughputOverride :: Lens.Lens' ReplicaDescription (Prelude.Maybe ProvisionedThroughputOverride)
replicaDescription_provisionedThroughputOverride :: Lens' ReplicaDescription (Maybe ProvisionedThroughputOverride)
replicaDescription_provisionedThroughputOverride = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicaDescription' {Maybe ProvisionedThroughputOverride
provisionedThroughputOverride :: Maybe ProvisionedThroughputOverride
$sel:provisionedThroughputOverride:ReplicaDescription' :: ReplicaDescription -> Maybe ProvisionedThroughputOverride
provisionedThroughputOverride} -> Maybe ProvisionedThroughputOverride
provisionedThroughputOverride) (\s :: ReplicaDescription
s@ReplicaDescription' {} Maybe ProvisionedThroughputOverride
a -> ReplicaDescription
s {$sel:provisionedThroughputOverride:ReplicaDescription' :: Maybe ProvisionedThroughputOverride
provisionedThroughputOverride = Maybe ProvisionedThroughputOverride
a} :: ReplicaDescription)

-- | The name of the Region.
replicaDescription_regionName :: Lens.Lens' ReplicaDescription (Prelude.Maybe Prelude.Text)
replicaDescription_regionName :: Lens' ReplicaDescription (Maybe Text)
replicaDescription_regionName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicaDescription' {Maybe Text
regionName :: Maybe Text
$sel:regionName:ReplicaDescription' :: ReplicaDescription -> Maybe Text
regionName} -> Maybe Text
regionName) (\s :: ReplicaDescription
s@ReplicaDescription' {} Maybe Text
a -> ReplicaDescription
s {$sel:regionName:ReplicaDescription' :: Maybe Text
regionName = Maybe Text
a} :: ReplicaDescription)

-- | The time at which the replica was first detected as inaccessible. To
-- determine cause of inaccessibility check the @ReplicaStatus@ property.
replicaDescription_replicaInaccessibleDateTime :: Lens.Lens' ReplicaDescription (Prelude.Maybe Prelude.UTCTime)
replicaDescription_replicaInaccessibleDateTime :: Lens' ReplicaDescription (Maybe UTCTime)
replicaDescription_replicaInaccessibleDateTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicaDescription' {Maybe POSIX
replicaInaccessibleDateTime :: Maybe POSIX
$sel:replicaInaccessibleDateTime:ReplicaDescription' :: ReplicaDescription -> Maybe POSIX
replicaInaccessibleDateTime} -> Maybe POSIX
replicaInaccessibleDateTime) (\s :: ReplicaDescription
s@ReplicaDescription' {} Maybe POSIX
a -> ReplicaDescription
s {$sel:replicaInaccessibleDateTime:ReplicaDescription' :: Maybe POSIX
replicaInaccessibleDateTime = Maybe POSIX
a} :: ReplicaDescription) 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 current state of the replica:
--
-- -   @CREATING@ - The replica is being created.
--
-- -   @UPDATING@ - The replica is being updated.
--
-- -   @DELETING@ - The replica is being deleted.
--
-- -   @ACTIVE@ - The replica is ready for use.
--
-- -   @REGION_DISABLED@ - The replica is inaccessible because the Amazon
--     Web Services Region has been disabled.
--
--     If the Amazon Web Services Region remains inaccessible for more than
--     20 hours, DynamoDB will remove this replica from the replication
--     group. The replica will not be deleted and replication will stop
--     from and to this region.
--
-- -   @INACCESSIBLE_ENCRYPTION_CREDENTIALS @ - The KMS key used to encrypt
--     the table is inaccessible.
--
--     If the KMS key remains inaccessible for more than 20 hours, DynamoDB
--     will remove this replica from the replication group. The replica
--     will not be deleted and replication will stop from and to this
--     region.
replicaDescription_replicaStatus :: Lens.Lens' ReplicaDescription (Prelude.Maybe ReplicaStatus)
replicaDescription_replicaStatus :: Lens' ReplicaDescription (Maybe ReplicaStatus)
replicaDescription_replicaStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicaDescription' {Maybe ReplicaStatus
replicaStatus :: Maybe ReplicaStatus
$sel:replicaStatus:ReplicaDescription' :: ReplicaDescription -> Maybe ReplicaStatus
replicaStatus} -> Maybe ReplicaStatus
replicaStatus) (\s :: ReplicaDescription
s@ReplicaDescription' {} Maybe ReplicaStatus
a -> ReplicaDescription
s {$sel:replicaStatus:ReplicaDescription' :: Maybe ReplicaStatus
replicaStatus = Maybe ReplicaStatus
a} :: ReplicaDescription)

-- | Detailed information about the replica status.
replicaDescription_replicaStatusDescription :: Lens.Lens' ReplicaDescription (Prelude.Maybe Prelude.Text)
replicaDescription_replicaStatusDescription :: Lens' ReplicaDescription (Maybe Text)
replicaDescription_replicaStatusDescription = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicaDescription' {Maybe Text
replicaStatusDescription :: Maybe Text
$sel:replicaStatusDescription:ReplicaDescription' :: ReplicaDescription -> Maybe Text
replicaStatusDescription} -> Maybe Text
replicaStatusDescription) (\s :: ReplicaDescription
s@ReplicaDescription' {} Maybe Text
a -> ReplicaDescription
s {$sel:replicaStatusDescription:ReplicaDescription' :: Maybe Text
replicaStatusDescription = Maybe Text
a} :: ReplicaDescription)

-- | Specifies the progress of a Create, Update, or Delete action on the
-- replica as a percentage.
replicaDescription_replicaStatusPercentProgress :: Lens.Lens' ReplicaDescription (Prelude.Maybe Prelude.Text)
replicaDescription_replicaStatusPercentProgress :: Lens' ReplicaDescription (Maybe Text)
replicaDescription_replicaStatusPercentProgress = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicaDescription' {Maybe Text
replicaStatusPercentProgress :: Maybe Text
$sel:replicaStatusPercentProgress:ReplicaDescription' :: ReplicaDescription -> Maybe Text
replicaStatusPercentProgress} -> Maybe Text
replicaStatusPercentProgress) (\s :: ReplicaDescription
s@ReplicaDescription' {} Maybe Text
a -> ReplicaDescription
s {$sel:replicaStatusPercentProgress:ReplicaDescription' :: Maybe Text
replicaStatusPercentProgress = Maybe Text
a} :: ReplicaDescription)

-- | Undocumented member.
replicaDescription_replicaTableClassSummary :: Lens.Lens' ReplicaDescription (Prelude.Maybe TableClassSummary)
replicaDescription_replicaTableClassSummary :: Lens' ReplicaDescription (Maybe TableClassSummary)
replicaDescription_replicaTableClassSummary = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicaDescription' {Maybe TableClassSummary
replicaTableClassSummary :: Maybe TableClassSummary
$sel:replicaTableClassSummary:ReplicaDescription' :: ReplicaDescription -> Maybe TableClassSummary
replicaTableClassSummary} -> Maybe TableClassSummary
replicaTableClassSummary) (\s :: ReplicaDescription
s@ReplicaDescription' {} Maybe TableClassSummary
a -> ReplicaDescription
s {$sel:replicaTableClassSummary:ReplicaDescription' :: Maybe TableClassSummary
replicaTableClassSummary = Maybe TableClassSummary
a} :: ReplicaDescription)

instance Data.FromJSON ReplicaDescription where
  parseJSON :: Value -> Parser ReplicaDescription
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"ReplicaDescription"
      ( \Object
x ->
          Maybe [ReplicaGlobalSecondaryIndexDescription]
-> Maybe Text
-> Maybe ProvisionedThroughputOverride
-> Maybe Text
-> Maybe POSIX
-> Maybe ReplicaStatus
-> Maybe Text
-> Maybe Text
-> Maybe TableClassSummary
-> ReplicaDescription
ReplicaDescription'
            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
"GlobalSecondaryIndexes"
                            forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
                        )
            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
"KMSMasterKeyId")
            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
"ProvisionedThroughputOverride")
            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
"RegionName")
            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
"ReplicaInaccessibleDateTime")
            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
"ReplicaStatus")
            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
"ReplicaStatusDescription")
            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
"ReplicaStatusPercentProgress")
            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
"ReplicaTableClassSummary")
      )

instance Prelude.Hashable ReplicaDescription where
  hashWithSalt :: Int -> ReplicaDescription -> Int
hashWithSalt Int
_salt ReplicaDescription' {Maybe [ReplicaGlobalSecondaryIndexDescription]
Maybe Text
Maybe POSIX
Maybe TableClassSummary
Maybe ReplicaStatus
Maybe ProvisionedThroughputOverride
replicaTableClassSummary :: Maybe TableClassSummary
replicaStatusPercentProgress :: Maybe Text
replicaStatusDescription :: Maybe Text
replicaStatus :: Maybe ReplicaStatus
replicaInaccessibleDateTime :: Maybe POSIX
regionName :: Maybe Text
provisionedThroughputOverride :: Maybe ProvisionedThroughputOverride
kmsMasterKeyId :: Maybe Text
globalSecondaryIndexes :: Maybe [ReplicaGlobalSecondaryIndexDescription]
$sel:replicaTableClassSummary:ReplicaDescription' :: ReplicaDescription -> Maybe TableClassSummary
$sel:replicaStatusPercentProgress:ReplicaDescription' :: ReplicaDescription -> Maybe Text
$sel:replicaStatusDescription:ReplicaDescription' :: ReplicaDescription -> Maybe Text
$sel:replicaStatus:ReplicaDescription' :: ReplicaDescription -> Maybe ReplicaStatus
$sel:replicaInaccessibleDateTime:ReplicaDescription' :: ReplicaDescription -> Maybe POSIX
$sel:regionName:ReplicaDescription' :: ReplicaDescription -> Maybe Text
$sel:provisionedThroughputOverride:ReplicaDescription' :: ReplicaDescription -> Maybe ProvisionedThroughputOverride
$sel:kmsMasterKeyId:ReplicaDescription' :: ReplicaDescription -> Maybe Text
$sel:globalSecondaryIndexes:ReplicaDescription' :: ReplicaDescription
-> Maybe [ReplicaGlobalSecondaryIndexDescription]
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [ReplicaGlobalSecondaryIndexDescription]
globalSecondaryIndexes
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
kmsMasterKeyId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ProvisionedThroughputOverride
provisionedThroughputOverride
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
regionName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
replicaInaccessibleDateTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ReplicaStatus
replicaStatus
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
replicaStatusDescription
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
replicaStatusPercentProgress
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe TableClassSummary
replicaTableClassSummary

instance Prelude.NFData ReplicaDescription where
  rnf :: ReplicaDescription -> ()
rnf ReplicaDescription' {Maybe [ReplicaGlobalSecondaryIndexDescription]
Maybe Text
Maybe POSIX
Maybe TableClassSummary
Maybe ReplicaStatus
Maybe ProvisionedThroughputOverride
replicaTableClassSummary :: Maybe TableClassSummary
replicaStatusPercentProgress :: Maybe Text
replicaStatusDescription :: Maybe Text
replicaStatus :: Maybe ReplicaStatus
replicaInaccessibleDateTime :: Maybe POSIX
regionName :: Maybe Text
provisionedThroughputOverride :: Maybe ProvisionedThroughputOverride
kmsMasterKeyId :: Maybe Text
globalSecondaryIndexes :: Maybe [ReplicaGlobalSecondaryIndexDescription]
$sel:replicaTableClassSummary:ReplicaDescription' :: ReplicaDescription -> Maybe TableClassSummary
$sel:replicaStatusPercentProgress:ReplicaDescription' :: ReplicaDescription -> Maybe Text
$sel:replicaStatusDescription:ReplicaDescription' :: ReplicaDescription -> Maybe Text
$sel:replicaStatus:ReplicaDescription' :: ReplicaDescription -> Maybe ReplicaStatus
$sel:replicaInaccessibleDateTime:ReplicaDescription' :: ReplicaDescription -> Maybe POSIX
$sel:regionName:ReplicaDescription' :: ReplicaDescription -> Maybe Text
$sel:provisionedThroughputOverride:ReplicaDescription' :: ReplicaDescription -> Maybe ProvisionedThroughputOverride
$sel:kmsMasterKeyId:ReplicaDescription' :: ReplicaDescription -> Maybe Text
$sel:globalSecondaryIndexes:ReplicaDescription' :: ReplicaDescription
-> Maybe [ReplicaGlobalSecondaryIndexDescription]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [ReplicaGlobalSecondaryIndexDescription]
globalSecondaryIndexes
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
kmsMasterKeyId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ProvisionedThroughputOverride
provisionedThroughputOverride
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
regionName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
replicaInaccessibleDateTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ReplicaStatus
replicaStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
replicaStatusDescription
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
replicaStatusPercentProgress
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe TableClassSummary
replicaTableClassSummary