{-# 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 #-}
module Amazonka.DynamoDB.Types.ReplicaSettingsDescription where
import qualified Amazonka.Core as Core
import Amazonka.DynamoDB.Types.AutoScalingSettingsDescription
import Amazonka.DynamoDB.Types.BillingModeSummary
import Amazonka.DynamoDB.Types.ReplicaGlobalSecondaryIndexSettingsDescription
import Amazonka.DynamoDB.Types.ReplicaStatus
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data ReplicaSettingsDescription = ReplicaSettingsDescription'
{
ReplicaSettingsDescription -> Maybe ReplicaStatus
replicaStatus :: Prelude.Maybe ReplicaStatus,
ReplicaSettingsDescription -> Maybe Natural
replicaProvisionedReadCapacityUnits :: Prelude.Maybe Prelude.Natural,
ReplicaSettingsDescription -> Maybe Natural
replicaProvisionedWriteCapacityUnits :: Prelude.Maybe Prelude.Natural,
ReplicaSettingsDescription -> Maybe BillingModeSummary
replicaBillingModeSummary :: Prelude.Maybe BillingModeSummary,
ReplicaSettingsDescription
-> Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]
replicaGlobalSecondaryIndexSettings :: Prelude.Maybe [ReplicaGlobalSecondaryIndexSettingsDescription],
ReplicaSettingsDescription -> Maybe AutoScalingSettingsDescription
replicaProvisionedWriteCapacityAutoScalingSettings :: Prelude.Maybe AutoScalingSettingsDescription,
ReplicaSettingsDescription -> Maybe AutoScalingSettingsDescription
replicaProvisionedReadCapacityAutoScalingSettings :: Prelude.Maybe AutoScalingSettingsDescription,
ReplicaSettingsDescription -> Text
regionName :: Prelude.Text
}
deriving (ReplicaSettingsDescription -> ReplicaSettingsDescription -> Bool
(ReplicaSettingsDescription -> ReplicaSettingsDescription -> Bool)
-> (ReplicaSettingsDescription
-> ReplicaSettingsDescription -> Bool)
-> Eq ReplicaSettingsDescription
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ReplicaSettingsDescription -> ReplicaSettingsDescription -> Bool
$c/= :: ReplicaSettingsDescription -> ReplicaSettingsDescription -> Bool
== :: ReplicaSettingsDescription -> ReplicaSettingsDescription -> Bool
$c== :: ReplicaSettingsDescription -> ReplicaSettingsDescription -> Bool
Prelude.Eq, ReadPrec [ReplicaSettingsDescription]
ReadPrec ReplicaSettingsDescription
Int -> ReadS ReplicaSettingsDescription
ReadS [ReplicaSettingsDescription]
(Int -> ReadS ReplicaSettingsDescription)
-> ReadS [ReplicaSettingsDescription]
-> ReadPrec ReplicaSettingsDescription
-> ReadPrec [ReplicaSettingsDescription]
-> Read ReplicaSettingsDescription
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ReplicaSettingsDescription]
$creadListPrec :: ReadPrec [ReplicaSettingsDescription]
readPrec :: ReadPrec ReplicaSettingsDescription
$creadPrec :: ReadPrec ReplicaSettingsDescription
readList :: ReadS [ReplicaSettingsDescription]
$creadList :: ReadS [ReplicaSettingsDescription]
readsPrec :: Int -> ReadS ReplicaSettingsDescription
$creadsPrec :: Int -> ReadS ReplicaSettingsDescription
Prelude.Read, Int -> ReplicaSettingsDescription -> ShowS
[ReplicaSettingsDescription] -> ShowS
ReplicaSettingsDescription -> String
(Int -> ReplicaSettingsDescription -> ShowS)
-> (ReplicaSettingsDescription -> String)
-> ([ReplicaSettingsDescription] -> ShowS)
-> Show ReplicaSettingsDescription
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ReplicaSettingsDescription] -> ShowS
$cshowList :: [ReplicaSettingsDescription] -> ShowS
show :: ReplicaSettingsDescription -> String
$cshow :: ReplicaSettingsDescription -> String
showsPrec :: Int -> ReplicaSettingsDescription -> ShowS
$cshowsPrec :: Int -> ReplicaSettingsDescription -> ShowS
Prelude.Show, (forall x.
ReplicaSettingsDescription -> Rep ReplicaSettingsDescription x)
-> (forall x.
Rep ReplicaSettingsDescription x -> ReplicaSettingsDescription)
-> Generic ReplicaSettingsDescription
forall x.
Rep ReplicaSettingsDescription x -> ReplicaSettingsDescription
forall x.
ReplicaSettingsDescription -> Rep ReplicaSettingsDescription x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ReplicaSettingsDescription x -> ReplicaSettingsDescription
$cfrom :: forall x.
ReplicaSettingsDescription -> Rep ReplicaSettingsDescription x
Prelude.Generic)
newReplicaSettingsDescription ::
Prelude.Text ->
ReplicaSettingsDescription
newReplicaSettingsDescription :: Text -> ReplicaSettingsDescription
newReplicaSettingsDescription Text
pRegionName_ =
ReplicaSettingsDescription' :: Maybe ReplicaStatus
-> Maybe Natural
-> Maybe Natural
-> Maybe BillingModeSummary
-> Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]
-> Maybe AutoScalingSettingsDescription
-> Maybe AutoScalingSettingsDescription
-> Text
-> ReplicaSettingsDescription
ReplicaSettingsDescription'
{ $sel:replicaStatus:ReplicaSettingsDescription' :: Maybe ReplicaStatus
replicaStatus =
Maybe ReplicaStatus
forall a. Maybe a
Prelude.Nothing,
$sel:replicaProvisionedReadCapacityUnits:ReplicaSettingsDescription' :: Maybe Natural
replicaProvisionedReadCapacityUnits =
Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:replicaProvisionedWriteCapacityUnits:ReplicaSettingsDescription' :: Maybe Natural
replicaProvisionedWriteCapacityUnits =
Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:replicaBillingModeSummary:ReplicaSettingsDescription' :: Maybe BillingModeSummary
replicaBillingModeSummary = Maybe BillingModeSummary
forall a. Maybe a
Prelude.Nothing,
$sel:replicaGlobalSecondaryIndexSettings:ReplicaSettingsDescription' :: Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]
replicaGlobalSecondaryIndexSettings =
Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]
forall a. Maybe a
Prelude.Nothing,
$sel:replicaProvisionedWriteCapacityAutoScalingSettings:ReplicaSettingsDescription' :: Maybe AutoScalingSettingsDescription
replicaProvisionedWriteCapacityAutoScalingSettings =
Maybe AutoScalingSettingsDescription
forall a. Maybe a
Prelude.Nothing,
$sel:replicaProvisionedReadCapacityAutoScalingSettings:ReplicaSettingsDescription' :: Maybe AutoScalingSettingsDescription
replicaProvisionedReadCapacityAutoScalingSettings =
Maybe AutoScalingSettingsDescription
forall a. Maybe a
Prelude.Nothing,
$sel:regionName:ReplicaSettingsDescription' :: Text
regionName = Text
pRegionName_
}
replicaSettingsDescription_replicaStatus :: Lens.Lens' ReplicaSettingsDescription (Prelude.Maybe ReplicaStatus)
replicaSettingsDescription_replicaStatus :: (Maybe ReplicaStatus -> f (Maybe ReplicaStatus))
-> ReplicaSettingsDescription -> f ReplicaSettingsDescription
replicaSettingsDescription_replicaStatus = (ReplicaSettingsDescription -> Maybe ReplicaStatus)
-> (ReplicaSettingsDescription
-> Maybe ReplicaStatus -> ReplicaSettingsDescription)
-> Lens
ReplicaSettingsDescription
ReplicaSettingsDescription
(Maybe ReplicaStatus)
(Maybe ReplicaStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicaSettingsDescription' {Maybe ReplicaStatus
replicaStatus :: Maybe ReplicaStatus
$sel:replicaStatus:ReplicaSettingsDescription' :: ReplicaSettingsDescription -> Maybe ReplicaStatus
replicaStatus} -> Maybe ReplicaStatus
replicaStatus) (\s :: ReplicaSettingsDescription
s@ReplicaSettingsDescription' {} Maybe ReplicaStatus
a -> ReplicaSettingsDescription
s {$sel:replicaStatus:ReplicaSettingsDescription' :: Maybe ReplicaStatus
replicaStatus = Maybe ReplicaStatus
a} :: ReplicaSettingsDescription)
replicaSettingsDescription_replicaProvisionedReadCapacityUnits :: Lens.Lens' ReplicaSettingsDescription (Prelude.Maybe Prelude.Natural)
replicaSettingsDescription_replicaProvisionedReadCapacityUnits :: (Maybe Natural -> f (Maybe Natural))
-> ReplicaSettingsDescription -> f ReplicaSettingsDescription
replicaSettingsDescription_replicaProvisionedReadCapacityUnits = (ReplicaSettingsDescription -> Maybe Natural)
-> (ReplicaSettingsDescription
-> Maybe Natural -> ReplicaSettingsDescription)
-> Lens
ReplicaSettingsDescription
ReplicaSettingsDescription
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicaSettingsDescription' {Maybe Natural
replicaProvisionedReadCapacityUnits :: Maybe Natural
$sel:replicaProvisionedReadCapacityUnits:ReplicaSettingsDescription' :: ReplicaSettingsDescription -> Maybe Natural
replicaProvisionedReadCapacityUnits} -> Maybe Natural
replicaProvisionedReadCapacityUnits) (\s :: ReplicaSettingsDescription
s@ReplicaSettingsDescription' {} Maybe Natural
a -> ReplicaSettingsDescription
s {$sel:replicaProvisionedReadCapacityUnits:ReplicaSettingsDescription' :: Maybe Natural
replicaProvisionedReadCapacityUnits = Maybe Natural
a} :: ReplicaSettingsDescription)
replicaSettingsDescription_replicaProvisionedWriteCapacityUnits :: Lens.Lens' ReplicaSettingsDescription (Prelude.Maybe Prelude.Natural)
replicaSettingsDescription_replicaProvisionedWriteCapacityUnits :: (Maybe Natural -> f (Maybe Natural))
-> ReplicaSettingsDescription -> f ReplicaSettingsDescription
replicaSettingsDescription_replicaProvisionedWriteCapacityUnits = (ReplicaSettingsDescription -> Maybe Natural)
-> (ReplicaSettingsDescription
-> Maybe Natural -> ReplicaSettingsDescription)
-> Lens
ReplicaSettingsDescription
ReplicaSettingsDescription
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicaSettingsDescription' {Maybe Natural
replicaProvisionedWriteCapacityUnits :: Maybe Natural
$sel:replicaProvisionedWriteCapacityUnits:ReplicaSettingsDescription' :: ReplicaSettingsDescription -> Maybe Natural
replicaProvisionedWriteCapacityUnits} -> Maybe Natural
replicaProvisionedWriteCapacityUnits) (\s :: ReplicaSettingsDescription
s@ReplicaSettingsDescription' {} Maybe Natural
a -> ReplicaSettingsDescription
s {$sel:replicaProvisionedWriteCapacityUnits:ReplicaSettingsDescription' :: Maybe Natural
replicaProvisionedWriteCapacityUnits = Maybe Natural
a} :: ReplicaSettingsDescription)
replicaSettingsDescription_replicaBillingModeSummary :: Lens.Lens' ReplicaSettingsDescription (Prelude.Maybe BillingModeSummary)
replicaSettingsDescription_replicaBillingModeSummary :: (Maybe BillingModeSummary -> f (Maybe BillingModeSummary))
-> ReplicaSettingsDescription -> f ReplicaSettingsDescription
replicaSettingsDescription_replicaBillingModeSummary = (ReplicaSettingsDescription -> Maybe BillingModeSummary)
-> (ReplicaSettingsDescription
-> Maybe BillingModeSummary -> ReplicaSettingsDescription)
-> Lens
ReplicaSettingsDescription
ReplicaSettingsDescription
(Maybe BillingModeSummary)
(Maybe BillingModeSummary)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicaSettingsDescription' {Maybe BillingModeSummary
replicaBillingModeSummary :: Maybe BillingModeSummary
$sel:replicaBillingModeSummary:ReplicaSettingsDescription' :: ReplicaSettingsDescription -> Maybe BillingModeSummary
replicaBillingModeSummary} -> Maybe BillingModeSummary
replicaBillingModeSummary) (\s :: ReplicaSettingsDescription
s@ReplicaSettingsDescription' {} Maybe BillingModeSummary
a -> ReplicaSettingsDescription
s {$sel:replicaBillingModeSummary:ReplicaSettingsDescription' :: Maybe BillingModeSummary
replicaBillingModeSummary = Maybe BillingModeSummary
a} :: ReplicaSettingsDescription)
replicaSettingsDescription_replicaGlobalSecondaryIndexSettings :: Lens.Lens' ReplicaSettingsDescription (Prelude.Maybe [ReplicaGlobalSecondaryIndexSettingsDescription])
replicaSettingsDescription_replicaGlobalSecondaryIndexSettings :: (Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]
-> f (Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]))
-> ReplicaSettingsDescription -> f ReplicaSettingsDescription
replicaSettingsDescription_replicaGlobalSecondaryIndexSettings = (ReplicaSettingsDescription
-> Maybe [ReplicaGlobalSecondaryIndexSettingsDescription])
-> (ReplicaSettingsDescription
-> Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]
-> ReplicaSettingsDescription)
-> Lens
ReplicaSettingsDescription
ReplicaSettingsDescription
(Maybe [ReplicaGlobalSecondaryIndexSettingsDescription])
(Maybe [ReplicaGlobalSecondaryIndexSettingsDescription])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicaSettingsDescription' {Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]
replicaGlobalSecondaryIndexSettings :: Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]
$sel:replicaGlobalSecondaryIndexSettings:ReplicaSettingsDescription' :: ReplicaSettingsDescription
-> Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]
replicaGlobalSecondaryIndexSettings} -> Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]
replicaGlobalSecondaryIndexSettings) (\s :: ReplicaSettingsDescription
s@ReplicaSettingsDescription' {} Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]
a -> ReplicaSettingsDescription
s {$sel:replicaGlobalSecondaryIndexSettings:ReplicaSettingsDescription' :: Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]
replicaGlobalSecondaryIndexSettings = Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]
a} :: ReplicaSettingsDescription) ((Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]
-> f (Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]))
-> ReplicaSettingsDescription -> f ReplicaSettingsDescription)
-> ((Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]
-> f (Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]))
-> Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]
-> f (Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]))
-> (Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]
-> f (Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]))
-> ReplicaSettingsDescription
-> f ReplicaSettingsDescription
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ReplicaGlobalSecondaryIndexSettingsDescription]
[ReplicaGlobalSecondaryIndexSettingsDescription]
[ReplicaGlobalSecondaryIndexSettingsDescription]
[ReplicaGlobalSecondaryIndexSettingsDescription]
-> Iso
(Maybe [ReplicaGlobalSecondaryIndexSettingsDescription])
(Maybe [ReplicaGlobalSecondaryIndexSettingsDescription])
(Maybe [ReplicaGlobalSecondaryIndexSettingsDescription])
(Maybe [ReplicaGlobalSecondaryIndexSettingsDescription])
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 AnIso
[ReplicaGlobalSecondaryIndexSettingsDescription]
[ReplicaGlobalSecondaryIndexSettingsDescription]
[ReplicaGlobalSecondaryIndexSettingsDescription]
[ReplicaGlobalSecondaryIndexSettingsDescription]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
replicaSettingsDescription_replicaProvisionedWriteCapacityAutoScalingSettings :: Lens.Lens' ReplicaSettingsDescription (Prelude.Maybe AutoScalingSettingsDescription)
replicaSettingsDescription_replicaProvisionedWriteCapacityAutoScalingSettings :: (Maybe AutoScalingSettingsDescription
-> f (Maybe AutoScalingSettingsDescription))
-> ReplicaSettingsDescription -> f ReplicaSettingsDescription
replicaSettingsDescription_replicaProvisionedWriteCapacityAutoScalingSettings = (ReplicaSettingsDescription
-> Maybe AutoScalingSettingsDescription)
-> (ReplicaSettingsDescription
-> Maybe AutoScalingSettingsDescription
-> ReplicaSettingsDescription)
-> Lens
ReplicaSettingsDescription
ReplicaSettingsDescription
(Maybe AutoScalingSettingsDescription)
(Maybe AutoScalingSettingsDescription)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicaSettingsDescription' {Maybe AutoScalingSettingsDescription
replicaProvisionedWriteCapacityAutoScalingSettings :: Maybe AutoScalingSettingsDescription
$sel:replicaProvisionedWriteCapacityAutoScalingSettings:ReplicaSettingsDescription' :: ReplicaSettingsDescription -> Maybe AutoScalingSettingsDescription
replicaProvisionedWriteCapacityAutoScalingSettings} -> Maybe AutoScalingSettingsDescription
replicaProvisionedWriteCapacityAutoScalingSettings) (\s :: ReplicaSettingsDescription
s@ReplicaSettingsDescription' {} Maybe AutoScalingSettingsDescription
a -> ReplicaSettingsDescription
s {$sel:replicaProvisionedWriteCapacityAutoScalingSettings:ReplicaSettingsDescription' :: Maybe AutoScalingSettingsDescription
replicaProvisionedWriteCapacityAutoScalingSettings = Maybe AutoScalingSettingsDescription
a} :: ReplicaSettingsDescription)
replicaSettingsDescription_replicaProvisionedReadCapacityAutoScalingSettings :: Lens.Lens' ReplicaSettingsDescription (Prelude.Maybe AutoScalingSettingsDescription)
replicaSettingsDescription_replicaProvisionedReadCapacityAutoScalingSettings :: (Maybe AutoScalingSettingsDescription
-> f (Maybe AutoScalingSettingsDescription))
-> ReplicaSettingsDescription -> f ReplicaSettingsDescription
replicaSettingsDescription_replicaProvisionedReadCapacityAutoScalingSettings = (ReplicaSettingsDescription
-> Maybe AutoScalingSettingsDescription)
-> (ReplicaSettingsDescription
-> Maybe AutoScalingSettingsDescription
-> ReplicaSettingsDescription)
-> Lens
ReplicaSettingsDescription
ReplicaSettingsDescription
(Maybe AutoScalingSettingsDescription)
(Maybe AutoScalingSettingsDescription)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicaSettingsDescription' {Maybe AutoScalingSettingsDescription
replicaProvisionedReadCapacityAutoScalingSettings :: Maybe AutoScalingSettingsDescription
$sel:replicaProvisionedReadCapacityAutoScalingSettings:ReplicaSettingsDescription' :: ReplicaSettingsDescription -> Maybe AutoScalingSettingsDescription
replicaProvisionedReadCapacityAutoScalingSettings} -> Maybe AutoScalingSettingsDescription
replicaProvisionedReadCapacityAutoScalingSettings) (\s :: ReplicaSettingsDescription
s@ReplicaSettingsDescription' {} Maybe AutoScalingSettingsDescription
a -> ReplicaSettingsDescription
s {$sel:replicaProvisionedReadCapacityAutoScalingSettings:ReplicaSettingsDescription' :: Maybe AutoScalingSettingsDescription
replicaProvisionedReadCapacityAutoScalingSettings = Maybe AutoScalingSettingsDescription
a} :: ReplicaSettingsDescription)
replicaSettingsDescription_regionName :: Lens.Lens' ReplicaSettingsDescription Prelude.Text
replicaSettingsDescription_regionName :: (Text -> f Text)
-> ReplicaSettingsDescription -> f ReplicaSettingsDescription
replicaSettingsDescription_regionName = (ReplicaSettingsDescription -> Text)
-> (ReplicaSettingsDescription
-> Text -> ReplicaSettingsDescription)
-> Lens
ReplicaSettingsDescription ReplicaSettingsDescription Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicaSettingsDescription' {Text
regionName :: Text
$sel:regionName:ReplicaSettingsDescription' :: ReplicaSettingsDescription -> Text
regionName} -> Text
regionName) (\s :: ReplicaSettingsDescription
s@ReplicaSettingsDescription' {} Text
a -> ReplicaSettingsDescription
s {$sel:regionName:ReplicaSettingsDescription' :: Text
regionName = Text
a} :: ReplicaSettingsDescription)
instance Core.FromJSON ReplicaSettingsDescription where
parseJSON :: Value -> Parser ReplicaSettingsDescription
parseJSON =
String
-> (Object -> Parser ReplicaSettingsDescription)
-> Value
-> Parser ReplicaSettingsDescription
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"ReplicaSettingsDescription"
( \Object
x ->
Maybe ReplicaStatus
-> Maybe Natural
-> Maybe Natural
-> Maybe BillingModeSummary
-> Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]
-> Maybe AutoScalingSettingsDescription
-> Maybe AutoScalingSettingsDescription
-> Text
-> ReplicaSettingsDescription
ReplicaSettingsDescription'
(Maybe ReplicaStatus
-> Maybe Natural
-> Maybe Natural
-> Maybe BillingModeSummary
-> Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]
-> Maybe AutoScalingSettingsDescription
-> Maybe AutoScalingSettingsDescription
-> Text
-> ReplicaSettingsDescription)
-> Parser (Maybe ReplicaStatus)
-> Parser
(Maybe Natural
-> Maybe Natural
-> Maybe BillingModeSummary
-> Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]
-> Maybe AutoScalingSettingsDescription
-> Maybe AutoScalingSettingsDescription
-> Text
-> ReplicaSettingsDescription)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe ReplicaStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ReplicaStatus")
Parser
(Maybe Natural
-> Maybe Natural
-> Maybe BillingModeSummary
-> Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]
-> Maybe AutoScalingSettingsDescription
-> Maybe AutoScalingSettingsDescription
-> Text
-> ReplicaSettingsDescription)
-> Parser (Maybe Natural)
-> Parser
(Maybe Natural
-> Maybe BillingModeSummary
-> Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]
-> Maybe AutoScalingSettingsDescription
-> Maybe AutoScalingSettingsDescription
-> Text
-> ReplicaSettingsDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ReplicaProvisionedReadCapacityUnits")
Parser
(Maybe Natural
-> Maybe BillingModeSummary
-> Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]
-> Maybe AutoScalingSettingsDescription
-> Maybe AutoScalingSettingsDescription
-> Text
-> ReplicaSettingsDescription)
-> Parser (Maybe Natural)
-> Parser
(Maybe BillingModeSummary
-> Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]
-> Maybe AutoScalingSettingsDescription
-> Maybe AutoScalingSettingsDescription
-> Text
-> ReplicaSettingsDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ReplicaProvisionedWriteCapacityUnits")
Parser
(Maybe BillingModeSummary
-> Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]
-> Maybe AutoScalingSettingsDescription
-> Maybe AutoScalingSettingsDescription
-> Text
-> ReplicaSettingsDescription)
-> Parser (Maybe BillingModeSummary)
-> Parser
(Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]
-> Maybe AutoScalingSettingsDescription
-> Maybe AutoScalingSettingsDescription
-> Text
-> ReplicaSettingsDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe BillingModeSummary)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ReplicaBillingModeSummary")
Parser
(Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]
-> Maybe AutoScalingSettingsDescription
-> Maybe AutoScalingSettingsDescription
-> Text
-> ReplicaSettingsDescription)
-> Parser (Maybe [ReplicaGlobalSecondaryIndexSettingsDescription])
-> Parser
(Maybe AutoScalingSettingsDescription
-> Maybe AutoScalingSettingsDescription
-> Text
-> ReplicaSettingsDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text
-> Parser
(Maybe (Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ReplicaGlobalSecondaryIndexSettings"
Parser
(Maybe (Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]))
-> Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]
-> Parser (Maybe [ReplicaGlobalSecondaryIndexSettingsDescription])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [ReplicaGlobalSecondaryIndexSettingsDescription]
forall a. Monoid a => a
Prelude.mempty
)
Parser
(Maybe AutoScalingSettingsDescription
-> Maybe AutoScalingSettingsDescription
-> Text
-> ReplicaSettingsDescription)
-> Parser (Maybe AutoScalingSettingsDescription)
-> Parser
(Maybe AutoScalingSettingsDescription
-> Text -> ReplicaSettingsDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
Object -> Text -> Parser (Maybe AutoScalingSettingsDescription)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ReplicaProvisionedWriteCapacityAutoScalingSettings"
)
Parser
(Maybe AutoScalingSettingsDescription
-> Text -> ReplicaSettingsDescription)
-> Parser (Maybe AutoScalingSettingsDescription)
-> Parser (Text -> ReplicaSettingsDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
Object -> Text -> Parser (Maybe AutoScalingSettingsDescription)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ReplicaProvisionedReadCapacityAutoScalingSettings"
)
Parser (Text -> ReplicaSettingsDescription)
-> Parser Text -> Parser ReplicaSettingsDescription
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"RegionName")
)
instance Prelude.Hashable ReplicaSettingsDescription
instance Prelude.NFData ReplicaSettingsDescription