{-# 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.GlobalSecondaryIndexDescription where
import qualified Amazonka.Core as Core
import Amazonka.DynamoDB.Types.IndexStatus
import Amazonka.DynamoDB.Types.KeySchemaElement
import Amazonka.DynamoDB.Types.Projection
import Amazonka.DynamoDB.Types.ProvisionedThroughputDescription
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data GlobalSecondaryIndexDescription = GlobalSecondaryIndexDescription'
{
GlobalSecondaryIndexDescription -> Maybe Bool
backfilling :: Prelude.Maybe Prelude.Bool,
GlobalSecondaryIndexDescription -> Maybe Integer
indexSizeBytes :: Prelude.Maybe Prelude.Integer,
GlobalSecondaryIndexDescription -> Maybe IndexStatus
indexStatus :: Prelude.Maybe IndexStatus,
GlobalSecondaryIndexDescription
-> Maybe ProvisionedThroughputDescription
provisionedThroughput :: Prelude.Maybe ProvisionedThroughputDescription,
GlobalSecondaryIndexDescription -> Maybe Text
indexArn :: Prelude.Maybe Prelude.Text,
GlobalSecondaryIndexDescription
-> Maybe (NonEmpty KeySchemaElement)
keySchema :: Prelude.Maybe (Prelude.NonEmpty KeySchemaElement),
GlobalSecondaryIndexDescription -> Maybe Projection
projection :: Prelude.Maybe Projection,
GlobalSecondaryIndexDescription -> Maybe Integer
itemCount :: Prelude.Maybe Prelude.Integer,
GlobalSecondaryIndexDescription -> Maybe Text
indexName :: Prelude.Maybe Prelude.Text
}
deriving (GlobalSecondaryIndexDescription
-> GlobalSecondaryIndexDescription -> Bool
(GlobalSecondaryIndexDescription
-> GlobalSecondaryIndexDescription -> Bool)
-> (GlobalSecondaryIndexDescription
-> GlobalSecondaryIndexDescription -> Bool)
-> Eq GlobalSecondaryIndexDescription
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GlobalSecondaryIndexDescription
-> GlobalSecondaryIndexDescription -> Bool
$c/= :: GlobalSecondaryIndexDescription
-> GlobalSecondaryIndexDescription -> Bool
== :: GlobalSecondaryIndexDescription
-> GlobalSecondaryIndexDescription -> Bool
$c== :: GlobalSecondaryIndexDescription
-> GlobalSecondaryIndexDescription -> Bool
Prelude.Eq, ReadPrec [GlobalSecondaryIndexDescription]
ReadPrec GlobalSecondaryIndexDescription
Int -> ReadS GlobalSecondaryIndexDescription
ReadS [GlobalSecondaryIndexDescription]
(Int -> ReadS GlobalSecondaryIndexDescription)
-> ReadS [GlobalSecondaryIndexDescription]
-> ReadPrec GlobalSecondaryIndexDescription
-> ReadPrec [GlobalSecondaryIndexDescription]
-> Read GlobalSecondaryIndexDescription
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GlobalSecondaryIndexDescription]
$creadListPrec :: ReadPrec [GlobalSecondaryIndexDescription]
readPrec :: ReadPrec GlobalSecondaryIndexDescription
$creadPrec :: ReadPrec GlobalSecondaryIndexDescription
readList :: ReadS [GlobalSecondaryIndexDescription]
$creadList :: ReadS [GlobalSecondaryIndexDescription]
readsPrec :: Int -> ReadS GlobalSecondaryIndexDescription
$creadsPrec :: Int -> ReadS GlobalSecondaryIndexDescription
Prelude.Read, Int -> GlobalSecondaryIndexDescription -> ShowS
[GlobalSecondaryIndexDescription] -> ShowS
GlobalSecondaryIndexDescription -> String
(Int -> GlobalSecondaryIndexDescription -> ShowS)
-> (GlobalSecondaryIndexDescription -> String)
-> ([GlobalSecondaryIndexDescription] -> ShowS)
-> Show GlobalSecondaryIndexDescription
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GlobalSecondaryIndexDescription] -> ShowS
$cshowList :: [GlobalSecondaryIndexDescription] -> ShowS
show :: GlobalSecondaryIndexDescription -> String
$cshow :: GlobalSecondaryIndexDescription -> String
showsPrec :: Int -> GlobalSecondaryIndexDescription -> ShowS
$cshowsPrec :: Int -> GlobalSecondaryIndexDescription -> ShowS
Prelude.Show, (forall x.
GlobalSecondaryIndexDescription
-> Rep GlobalSecondaryIndexDescription x)
-> (forall x.
Rep GlobalSecondaryIndexDescription x
-> GlobalSecondaryIndexDescription)
-> Generic GlobalSecondaryIndexDescription
forall x.
Rep GlobalSecondaryIndexDescription x
-> GlobalSecondaryIndexDescription
forall x.
GlobalSecondaryIndexDescription
-> Rep GlobalSecondaryIndexDescription x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GlobalSecondaryIndexDescription x
-> GlobalSecondaryIndexDescription
$cfrom :: forall x.
GlobalSecondaryIndexDescription
-> Rep GlobalSecondaryIndexDescription x
Prelude.Generic)
newGlobalSecondaryIndexDescription ::
GlobalSecondaryIndexDescription
newGlobalSecondaryIndexDescription :: GlobalSecondaryIndexDescription
newGlobalSecondaryIndexDescription =
GlobalSecondaryIndexDescription' :: Maybe Bool
-> Maybe Integer
-> Maybe IndexStatus
-> Maybe ProvisionedThroughputDescription
-> Maybe Text
-> Maybe (NonEmpty KeySchemaElement)
-> Maybe Projection
-> Maybe Integer
-> Maybe Text
-> GlobalSecondaryIndexDescription
GlobalSecondaryIndexDescription'
{ $sel:backfilling:GlobalSecondaryIndexDescription' :: Maybe Bool
backfilling =
Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:indexSizeBytes:GlobalSecondaryIndexDescription' :: Maybe Integer
indexSizeBytes = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:indexStatus:GlobalSecondaryIndexDescription' :: Maybe IndexStatus
indexStatus = Maybe IndexStatus
forall a. Maybe a
Prelude.Nothing,
$sel:provisionedThroughput:GlobalSecondaryIndexDescription' :: Maybe ProvisionedThroughputDescription
provisionedThroughput = Maybe ProvisionedThroughputDescription
forall a. Maybe a
Prelude.Nothing,
$sel:indexArn:GlobalSecondaryIndexDescription' :: Maybe Text
indexArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:keySchema:GlobalSecondaryIndexDescription' :: Maybe (NonEmpty KeySchemaElement)
keySchema = Maybe (NonEmpty KeySchemaElement)
forall a. Maybe a
Prelude.Nothing,
$sel:projection:GlobalSecondaryIndexDescription' :: Maybe Projection
projection = Maybe Projection
forall a. Maybe a
Prelude.Nothing,
$sel:itemCount:GlobalSecondaryIndexDescription' :: Maybe Integer
itemCount = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:indexName:GlobalSecondaryIndexDescription' :: Maybe Text
indexName = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
globalSecondaryIndexDescription_backfilling :: Lens.Lens' GlobalSecondaryIndexDescription (Prelude.Maybe Prelude.Bool)
globalSecondaryIndexDescription_backfilling :: (Maybe Bool -> f (Maybe Bool))
-> GlobalSecondaryIndexDescription
-> f GlobalSecondaryIndexDescription
globalSecondaryIndexDescription_backfilling = (GlobalSecondaryIndexDescription -> Maybe Bool)
-> (GlobalSecondaryIndexDescription
-> Maybe Bool -> GlobalSecondaryIndexDescription)
-> Lens
GlobalSecondaryIndexDescription
GlobalSecondaryIndexDescription
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GlobalSecondaryIndexDescription' {Maybe Bool
backfilling :: Maybe Bool
$sel:backfilling:GlobalSecondaryIndexDescription' :: GlobalSecondaryIndexDescription -> Maybe Bool
backfilling} -> Maybe Bool
backfilling) (\s :: GlobalSecondaryIndexDescription
s@GlobalSecondaryIndexDescription' {} Maybe Bool
a -> GlobalSecondaryIndexDescription
s {$sel:backfilling:GlobalSecondaryIndexDescription' :: Maybe Bool
backfilling = Maybe Bool
a} :: GlobalSecondaryIndexDescription)
globalSecondaryIndexDescription_indexSizeBytes :: Lens.Lens' GlobalSecondaryIndexDescription (Prelude.Maybe Prelude.Integer)
globalSecondaryIndexDescription_indexSizeBytes :: (Maybe Integer -> f (Maybe Integer))
-> GlobalSecondaryIndexDescription
-> f GlobalSecondaryIndexDescription
globalSecondaryIndexDescription_indexSizeBytes = (GlobalSecondaryIndexDescription -> Maybe Integer)
-> (GlobalSecondaryIndexDescription
-> Maybe Integer -> GlobalSecondaryIndexDescription)
-> Lens
GlobalSecondaryIndexDescription
GlobalSecondaryIndexDescription
(Maybe Integer)
(Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GlobalSecondaryIndexDescription' {Maybe Integer
indexSizeBytes :: Maybe Integer
$sel:indexSizeBytes:GlobalSecondaryIndexDescription' :: GlobalSecondaryIndexDescription -> Maybe Integer
indexSizeBytes} -> Maybe Integer
indexSizeBytes) (\s :: GlobalSecondaryIndexDescription
s@GlobalSecondaryIndexDescription' {} Maybe Integer
a -> GlobalSecondaryIndexDescription
s {$sel:indexSizeBytes:GlobalSecondaryIndexDescription' :: Maybe Integer
indexSizeBytes = Maybe Integer
a} :: GlobalSecondaryIndexDescription)
globalSecondaryIndexDescription_indexStatus :: Lens.Lens' GlobalSecondaryIndexDescription (Prelude.Maybe IndexStatus)
globalSecondaryIndexDescription_indexStatus :: (Maybe IndexStatus -> f (Maybe IndexStatus))
-> GlobalSecondaryIndexDescription
-> f GlobalSecondaryIndexDescription
globalSecondaryIndexDescription_indexStatus = (GlobalSecondaryIndexDescription -> Maybe IndexStatus)
-> (GlobalSecondaryIndexDescription
-> Maybe IndexStatus -> GlobalSecondaryIndexDescription)
-> Lens
GlobalSecondaryIndexDescription
GlobalSecondaryIndexDescription
(Maybe IndexStatus)
(Maybe IndexStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GlobalSecondaryIndexDescription' {Maybe IndexStatus
indexStatus :: Maybe IndexStatus
$sel:indexStatus:GlobalSecondaryIndexDescription' :: GlobalSecondaryIndexDescription -> Maybe IndexStatus
indexStatus} -> Maybe IndexStatus
indexStatus) (\s :: GlobalSecondaryIndexDescription
s@GlobalSecondaryIndexDescription' {} Maybe IndexStatus
a -> GlobalSecondaryIndexDescription
s {$sel:indexStatus:GlobalSecondaryIndexDescription' :: Maybe IndexStatus
indexStatus = Maybe IndexStatus
a} :: GlobalSecondaryIndexDescription)
globalSecondaryIndexDescription_provisionedThroughput :: Lens.Lens' GlobalSecondaryIndexDescription (Prelude.Maybe ProvisionedThroughputDescription)
globalSecondaryIndexDescription_provisionedThroughput :: (Maybe ProvisionedThroughputDescription
-> f (Maybe ProvisionedThroughputDescription))
-> GlobalSecondaryIndexDescription
-> f GlobalSecondaryIndexDescription
globalSecondaryIndexDescription_provisionedThroughput = (GlobalSecondaryIndexDescription
-> Maybe ProvisionedThroughputDescription)
-> (GlobalSecondaryIndexDescription
-> Maybe ProvisionedThroughputDescription
-> GlobalSecondaryIndexDescription)
-> Lens
GlobalSecondaryIndexDescription
GlobalSecondaryIndexDescription
(Maybe ProvisionedThroughputDescription)
(Maybe ProvisionedThroughputDescription)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GlobalSecondaryIndexDescription' {Maybe ProvisionedThroughputDescription
provisionedThroughput :: Maybe ProvisionedThroughputDescription
$sel:provisionedThroughput:GlobalSecondaryIndexDescription' :: GlobalSecondaryIndexDescription
-> Maybe ProvisionedThroughputDescription
provisionedThroughput} -> Maybe ProvisionedThroughputDescription
provisionedThroughput) (\s :: GlobalSecondaryIndexDescription
s@GlobalSecondaryIndexDescription' {} Maybe ProvisionedThroughputDescription
a -> GlobalSecondaryIndexDescription
s {$sel:provisionedThroughput:GlobalSecondaryIndexDescription' :: Maybe ProvisionedThroughputDescription
provisionedThroughput = Maybe ProvisionedThroughputDescription
a} :: GlobalSecondaryIndexDescription)
globalSecondaryIndexDescription_indexArn :: Lens.Lens' GlobalSecondaryIndexDescription (Prelude.Maybe Prelude.Text)
globalSecondaryIndexDescription_indexArn :: (Maybe Text -> f (Maybe Text))
-> GlobalSecondaryIndexDescription
-> f GlobalSecondaryIndexDescription
globalSecondaryIndexDescription_indexArn = (GlobalSecondaryIndexDescription -> Maybe Text)
-> (GlobalSecondaryIndexDescription
-> Maybe Text -> GlobalSecondaryIndexDescription)
-> Lens
GlobalSecondaryIndexDescription
GlobalSecondaryIndexDescription
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GlobalSecondaryIndexDescription' {Maybe Text
indexArn :: Maybe Text
$sel:indexArn:GlobalSecondaryIndexDescription' :: GlobalSecondaryIndexDescription -> Maybe Text
indexArn} -> Maybe Text
indexArn) (\s :: GlobalSecondaryIndexDescription
s@GlobalSecondaryIndexDescription' {} Maybe Text
a -> GlobalSecondaryIndexDescription
s {$sel:indexArn:GlobalSecondaryIndexDescription' :: Maybe Text
indexArn = Maybe Text
a} :: GlobalSecondaryIndexDescription)
globalSecondaryIndexDescription_keySchema :: Lens.Lens' GlobalSecondaryIndexDescription (Prelude.Maybe (Prelude.NonEmpty KeySchemaElement))
globalSecondaryIndexDescription_keySchema :: (Maybe (NonEmpty KeySchemaElement)
-> f (Maybe (NonEmpty KeySchemaElement)))
-> GlobalSecondaryIndexDescription
-> f GlobalSecondaryIndexDescription
globalSecondaryIndexDescription_keySchema = (GlobalSecondaryIndexDescription
-> Maybe (NonEmpty KeySchemaElement))
-> (GlobalSecondaryIndexDescription
-> Maybe (NonEmpty KeySchemaElement)
-> GlobalSecondaryIndexDescription)
-> Lens
GlobalSecondaryIndexDescription
GlobalSecondaryIndexDescription
(Maybe (NonEmpty KeySchemaElement))
(Maybe (NonEmpty KeySchemaElement))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GlobalSecondaryIndexDescription' {Maybe (NonEmpty KeySchemaElement)
keySchema :: Maybe (NonEmpty KeySchemaElement)
$sel:keySchema:GlobalSecondaryIndexDescription' :: GlobalSecondaryIndexDescription
-> Maybe (NonEmpty KeySchemaElement)
keySchema} -> Maybe (NonEmpty KeySchemaElement)
keySchema) (\s :: GlobalSecondaryIndexDescription
s@GlobalSecondaryIndexDescription' {} Maybe (NonEmpty KeySchemaElement)
a -> GlobalSecondaryIndexDescription
s {$sel:keySchema:GlobalSecondaryIndexDescription' :: Maybe (NonEmpty KeySchemaElement)
keySchema = Maybe (NonEmpty KeySchemaElement)
a} :: GlobalSecondaryIndexDescription) ((Maybe (NonEmpty KeySchemaElement)
-> f (Maybe (NonEmpty KeySchemaElement)))
-> GlobalSecondaryIndexDescription
-> f GlobalSecondaryIndexDescription)
-> ((Maybe (NonEmpty KeySchemaElement)
-> f (Maybe (NonEmpty KeySchemaElement)))
-> Maybe (NonEmpty KeySchemaElement)
-> f (Maybe (NonEmpty KeySchemaElement)))
-> (Maybe (NonEmpty KeySchemaElement)
-> f (Maybe (NonEmpty KeySchemaElement)))
-> GlobalSecondaryIndexDescription
-> f GlobalSecondaryIndexDescription
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty KeySchemaElement)
(NonEmpty KeySchemaElement)
(NonEmpty KeySchemaElement)
(NonEmpty KeySchemaElement)
-> Iso
(Maybe (NonEmpty KeySchemaElement))
(Maybe (NonEmpty KeySchemaElement))
(Maybe (NonEmpty KeySchemaElement))
(Maybe (NonEmpty KeySchemaElement))
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
(NonEmpty KeySchemaElement)
(NonEmpty KeySchemaElement)
(NonEmpty KeySchemaElement)
(NonEmpty KeySchemaElement)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
globalSecondaryIndexDescription_projection :: Lens.Lens' GlobalSecondaryIndexDescription (Prelude.Maybe Projection)
globalSecondaryIndexDescription_projection :: (Maybe Projection -> f (Maybe Projection))
-> GlobalSecondaryIndexDescription
-> f GlobalSecondaryIndexDescription
globalSecondaryIndexDescription_projection = (GlobalSecondaryIndexDescription -> Maybe Projection)
-> (GlobalSecondaryIndexDescription
-> Maybe Projection -> GlobalSecondaryIndexDescription)
-> Lens
GlobalSecondaryIndexDescription
GlobalSecondaryIndexDescription
(Maybe Projection)
(Maybe Projection)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GlobalSecondaryIndexDescription' {Maybe Projection
projection :: Maybe Projection
$sel:projection:GlobalSecondaryIndexDescription' :: GlobalSecondaryIndexDescription -> Maybe Projection
projection} -> Maybe Projection
projection) (\s :: GlobalSecondaryIndexDescription
s@GlobalSecondaryIndexDescription' {} Maybe Projection
a -> GlobalSecondaryIndexDescription
s {$sel:projection:GlobalSecondaryIndexDescription' :: Maybe Projection
projection = Maybe Projection
a} :: GlobalSecondaryIndexDescription)
globalSecondaryIndexDescription_itemCount :: Lens.Lens' GlobalSecondaryIndexDescription (Prelude.Maybe Prelude.Integer)
globalSecondaryIndexDescription_itemCount :: (Maybe Integer -> f (Maybe Integer))
-> GlobalSecondaryIndexDescription
-> f GlobalSecondaryIndexDescription
globalSecondaryIndexDescription_itemCount = (GlobalSecondaryIndexDescription -> Maybe Integer)
-> (GlobalSecondaryIndexDescription
-> Maybe Integer -> GlobalSecondaryIndexDescription)
-> Lens
GlobalSecondaryIndexDescription
GlobalSecondaryIndexDescription
(Maybe Integer)
(Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GlobalSecondaryIndexDescription' {Maybe Integer
itemCount :: Maybe Integer
$sel:itemCount:GlobalSecondaryIndexDescription' :: GlobalSecondaryIndexDescription -> Maybe Integer
itemCount} -> Maybe Integer
itemCount) (\s :: GlobalSecondaryIndexDescription
s@GlobalSecondaryIndexDescription' {} Maybe Integer
a -> GlobalSecondaryIndexDescription
s {$sel:itemCount:GlobalSecondaryIndexDescription' :: Maybe Integer
itemCount = Maybe Integer
a} :: GlobalSecondaryIndexDescription)
globalSecondaryIndexDescription_indexName :: Lens.Lens' GlobalSecondaryIndexDescription (Prelude.Maybe Prelude.Text)
globalSecondaryIndexDescription_indexName :: (Maybe Text -> f (Maybe Text))
-> GlobalSecondaryIndexDescription
-> f GlobalSecondaryIndexDescription
globalSecondaryIndexDescription_indexName = (GlobalSecondaryIndexDescription -> Maybe Text)
-> (GlobalSecondaryIndexDescription
-> Maybe Text -> GlobalSecondaryIndexDescription)
-> Lens
GlobalSecondaryIndexDescription
GlobalSecondaryIndexDescription
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GlobalSecondaryIndexDescription' {Maybe Text
indexName :: Maybe Text
$sel:indexName:GlobalSecondaryIndexDescription' :: GlobalSecondaryIndexDescription -> Maybe Text
indexName} -> Maybe Text
indexName) (\s :: GlobalSecondaryIndexDescription
s@GlobalSecondaryIndexDescription' {} Maybe Text
a -> GlobalSecondaryIndexDescription
s {$sel:indexName:GlobalSecondaryIndexDescription' :: Maybe Text
indexName = Maybe Text
a} :: GlobalSecondaryIndexDescription)
instance
Core.FromJSON
GlobalSecondaryIndexDescription
where
parseJSON :: Value -> Parser GlobalSecondaryIndexDescription
parseJSON =
String
-> (Object -> Parser GlobalSecondaryIndexDescription)
-> Value
-> Parser GlobalSecondaryIndexDescription
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"GlobalSecondaryIndexDescription"
( \Object
x ->
Maybe Bool
-> Maybe Integer
-> Maybe IndexStatus
-> Maybe ProvisionedThroughputDescription
-> Maybe Text
-> Maybe (NonEmpty KeySchemaElement)
-> Maybe Projection
-> Maybe Integer
-> Maybe Text
-> GlobalSecondaryIndexDescription
GlobalSecondaryIndexDescription'
(Maybe Bool
-> Maybe Integer
-> Maybe IndexStatus
-> Maybe ProvisionedThroughputDescription
-> Maybe Text
-> Maybe (NonEmpty KeySchemaElement)
-> Maybe Projection
-> Maybe Integer
-> Maybe Text
-> GlobalSecondaryIndexDescription)
-> Parser (Maybe Bool)
-> Parser
(Maybe Integer
-> Maybe IndexStatus
-> Maybe ProvisionedThroughputDescription
-> Maybe Text
-> Maybe (NonEmpty KeySchemaElement)
-> Maybe Projection
-> Maybe Integer
-> Maybe Text
-> GlobalSecondaryIndexDescription)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Backfilling")
Parser
(Maybe Integer
-> Maybe IndexStatus
-> Maybe ProvisionedThroughputDescription
-> Maybe Text
-> Maybe (NonEmpty KeySchemaElement)
-> Maybe Projection
-> Maybe Integer
-> Maybe Text
-> GlobalSecondaryIndexDescription)
-> Parser (Maybe Integer)
-> Parser
(Maybe IndexStatus
-> Maybe ProvisionedThroughputDescription
-> Maybe Text
-> Maybe (NonEmpty KeySchemaElement)
-> Maybe Projection
-> Maybe Integer
-> Maybe Text
-> GlobalSecondaryIndexDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"IndexSizeBytes")
Parser
(Maybe IndexStatus
-> Maybe ProvisionedThroughputDescription
-> Maybe Text
-> Maybe (NonEmpty KeySchemaElement)
-> Maybe Projection
-> Maybe Integer
-> Maybe Text
-> GlobalSecondaryIndexDescription)
-> Parser (Maybe IndexStatus)
-> Parser
(Maybe ProvisionedThroughputDescription
-> Maybe Text
-> Maybe (NonEmpty KeySchemaElement)
-> Maybe Projection
-> Maybe Integer
-> Maybe Text
-> GlobalSecondaryIndexDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe IndexStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"IndexStatus")
Parser
(Maybe ProvisionedThroughputDescription
-> Maybe Text
-> Maybe (NonEmpty KeySchemaElement)
-> Maybe Projection
-> Maybe Integer
-> Maybe Text
-> GlobalSecondaryIndexDescription)
-> Parser (Maybe ProvisionedThroughputDescription)
-> Parser
(Maybe Text
-> Maybe (NonEmpty KeySchemaElement)
-> Maybe Projection
-> Maybe Integer
-> Maybe Text
-> GlobalSecondaryIndexDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ProvisionedThroughputDescription)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ProvisionedThroughput")
Parser
(Maybe Text
-> Maybe (NonEmpty KeySchemaElement)
-> Maybe Projection
-> Maybe Integer
-> Maybe Text
-> GlobalSecondaryIndexDescription)
-> Parser (Maybe Text)
-> Parser
(Maybe (NonEmpty KeySchemaElement)
-> Maybe Projection
-> Maybe Integer
-> Maybe Text
-> GlobalSecondaryIndexDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"IndexArn")
Parser
(Maybe (NonEmpty KeySchemaElement)
-> Maybe Projection
-> Maybe Integer
-> Maybe Text
-> GlobalSecondaryIndexDescription)
-> Parser (Maybe (NonEmpty KeySchemaElement))
-> Parser
(Maybe Projection
-> Maybe Integer -> Maybe Text -> GlobalSecondaryIndexDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (NonEmpty KeySchemaElement))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"KeySchema")
Parser
(Maybe Projection
-> Maybe Integer -> Maybe Text -> GlobalSecondaryIndexDescription)
-> Parser (Maybe Projection)
-> Parser
(Maybe Integer -> Maybe Text -> GlobalSecondaryIndexDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Projection)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Projection")
Parser
(Maybe Integer -> Maybe Text -> GlobalSecondaryIndexDescription)
-> Parser (Maybe Integer)
-> Parser (Maybe Text -> GlobalSecondaryIndexDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ItemCount")
Parser (Maybe Text -> GlobalSecondaryIndexDescription)
-> Parser (Maybe Text) -> Parser GlobalSecondaryIndexDescription
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"IndexName")
)
instance
Prelude.Hashable
GlobalSecondaryIndexDescription
instance
Prelude.NFData
GlobalSecondaryIndexDescription