{-# 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.TableDescription
-- 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.TableDescription 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.ArchivalSummary
import Amazonka.DynamoDB.Types.AttributeDefinition
import Amazonka.DynamoDB.Types.AttributeValue
import Amazonka.DynamoDB.Types.BillingModeSummary
import Amazonka.DynamoDB.Types.GlobalSecondaryIndexDescription
import Amazonka.DynamoDB.Types.KeySchemaElement
import Amazonka.DynamoDB.Types.LocalSecondaryIndexDescription
import Amazonka.DynamoDB.Types.ProvisionedThroughputDescription
import Amazonka.DynamoDB.Types.ReplicaDescription
import Amazonka.DynamoDB.Types.RestoreSummary
import Amazonka.DynamoDB.Types.SSEDescription
import Amazonka.DynamoDB.Types.StreamSpecification
import Amazonka.DynamoDB.Types.TableClassSummary
import Amazonka.DynamoDB.Types.TableStatus
import Amazonka.DynamoDB.Types.WriteRequest
import qualified Amazonka.Prelude as Prelude

-- | Represents the properties of a table.
--
-- /See:/ 'newTableDescription' smart constructor.
data TableDescription = TableDescription'
  { -- | Contains information about the table archive.
    TableDescription -> Maybe ArchivalSummary
archivalSummary :: Prelude.Maybe ArchivalSummary,
    -- | An array of @AttributeDefinition@ objects. Each of these objects
    -- describes one attribute in the table and index key schema.
    --
    -- Each @AttributeDefinition@ object in this array is composed of:
    --
    -- -   @AttributeName@ - The name of the attribute.
    --
    -- -   @AttributeType@ - The data type for the attribute.
    TableDescription -> Maybe [AttributeDefinition]
attributeDefinitions :: Prelude.Maybe [AttributeDefinition],
    -- | Contains the details for the read\/write capacity mode.
    TableDescription -> Maybe BillingModeSummary
billingModeSummary :: Prelude.Maybe BillingModeSummary,
    -- | The date and time when the table was created, in
    -- <http://www.epochconverter.com/ UNIX epoch time> format.
    TableDescription -> Maybe POSIX
creationDateTime :: Prelude.Maybe Data.POSIX,
    -- | The global secondary indexes, if any, on the table. Each index is scoped
    -- to a given partition key value. Each element is composed of:
    --
    -- -   @Backfilling@ - If true, then the index is currently in the
    --     backfilling phase. Backfilling occurs only when a new global
    --     secondary index is added to the table. It is the process by which
    --     DynamoDB populates the new index with data from the table. (This
    --     attribute does not appear for indexes that were created during a
    --     @CreateTable@ operation.)
    --
    --     You can delete an index that is being created during the
    --     @Backfilling@ phase when @IndexStatus@ is set to CREATING and
    --     @Backfilling@ is true. You can\'t delete the index that is being
    --     created when @IndexStatus@ is set to CREATING and @Backfilling@ is
    --     false. (This attribute does not appear for indexes that were created
    --     during a @CreateTable@ operation.)
    --
    -- -   @IndexName@ - The name of the global secondary index.
    --
    -- -   @IndexSizeBytes@ - The total size of the global secondary index, in
    --     bytes. DynamoDB updates this value approximately every six hours.
    --     Recent changes might not be reflected in this value.
    --
    -- -   @IndexStatus@ - The current status of the global secondary index:
    --
    --     -   @CREATING@ - The index is being created.
    --
    --     -   @UPDATING@ - The index is being updated.
    --
    --     -   @DELETING@ - The index is being deleted.
    --
    --     -   @ACTIVE@ - The index is ready for use.
    --
    -- -   @ItemCount@ - The number of items in the global secondary index.
    --     DynamoDB updates this value approximately every six hours. Recent
    --     changes might not be reflected in this value.
    --
    -- -   @KeySchema@ - Specifies the complete index key schema. The attribute
    --     names in the key schema must be between 1 and 255 characters
    --     (inclusive). The key schema must begin with the same partition key
    --     as the table.
    --
    -- -   @Projection@ - Specifies attributes that are copied (projected) from
    --     the table into the index. These are in addition to the primary key
    --     attributes and index key attributes, which are automatically
    --     projected. Each attribute specification is composed of:
    --
    --     -   @ProjectionType@ - One of the following:
    --
    --         -   @KEYS_ONLY@ - Only the index and primary keys are projected
    --             into the index.
    --
    --         -   @INCLUDE@ - In addition to the attributes described in
    --             @KEYS_ONLY@, the secondary index will include other non-key
    --             attributes that you specify.
    --
    --         -   @ALL@ - All of the table attributes are projected into the
    --             index.
    --
    --     -   @NonKeyAttributes@ - A list of one or more non-key attribute
    --         names that are projected into the secondary index. The total
    --         count of attributes provided in @NonKeyAttributes@, summed
    --         across all of the secondary indexes, must not exceed 100. If you
    --         project the same attribute into two different indexes, this
    --         counts as two distinct attributes when determining the total.
    --
    -- -   @ProvisionedThroughput@ - The provisioned throughput settings for
    --     the global secondary index, consisting of read and write capacity
    --     units, along with data about increases and decreases.
    --
    -- If the table is in the @DELETING@ state, no information about indexes
    -- will be returned.
    TableDescription -> Maybe [GlobalSecondaryIndexDescription]
globalSecondaryIndexes :: Prelude.Maybe [GlobalSecondaryIndexDescription],
    -- | Represents the version of
    -- <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GlobalTables.html global tables>
    -- in use, if the table is replicated across Amazon Web Services Regions.
    TableDescription -> Maybe Text
globalTableVersion :: Prelude.Maybe Prelude.Text,
    -- | The number of items in the specified table. DynamoDB updates this value
    -- approximately every six hours. Recent changes might not be reflected in
    -- this value.
    TableDescription -> Maybe Integer
itemCount :: Prelude.Maybe Prelude.Integer,
    -- | The primary key structure for the table. Each @KeySchemaElement@
    -- consists of:
    --
    -- -   @AttributeName@ - The name of the attribute.
    --
    -- -   @KeyType@ - The role of the attribute:
    --
    --     -   @HASH@ - partition key
    --
    --     -   @RANGE@ - sort key
    --
    --     The partition key of an item is also known as its /hash attribute/.
    --     The term \"hash attribute\" derives from DynamoDB\'s usage of an
    --     internal hash function to evenly distribute data items across
    --     partitions, based on their partition key values.
    --
    --     The sort key of an item is also known as its /range attribute/. The
    --     term \"range attribute\" derives from the way DynamoDB stores items
    --     with the same partition key physically close together, in sorted
    --     order by the sort key value.
    --
    -- For more information about primary keys, see
    -- <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html#DataModelPrimaryKey Primary Key>
    -- in the /Amazon DynamoDB Developer Guide/.
    TableDescription -> Maybe (NonEmpty KeySchemaElement)
keySchema :: Prelude.Maybe (Prelude.NonEmpty KeySchemaElement),
    -- | The Amazon Resource Name (ARN) that uniquely identifies the latest
    -- stream for this table.
    TableDescription -> Maybe Text
latestStreamArn :: Prelude.Maybe Prelude.Text,
    -- | A timestamp, in ISO 8601 format, for this stream.
    --
    -- Note that @LatestStreamLabel@ is not a unique identifier for the stream,
    -- because it is possible that a stream from another table might have the
    -- same timestamp. However, the combination of the following three elements
    -- is guaranteed to be unique:
    --
    -- -   Amazon Web Services customer ID
    --
    -- -   Table name
    --
    -- -   @StreamLabel@
    TableDescription -> Maybe Text
latestStreamLabel :: Prelude.Maybe Prelude.Text,
    -- | Represents one or more local secondary indexes on the table. Each index
    -- is scoped to a given partition key value. Tables with one or more local
    -- secondary indexes are subject to an item collection size limit, where
    -- the amount of data within a given item collection cannot exceed 10 GB.
    -- Each element is composed of:
    --
    -- -   @IndexName@ - The name of the local secondary index.
    --
    -- -   @KeySchema@ - Specifies the complete index key schema. The attribute
    --     names in the key schema must be between 1 and 255 characters
    --     (inclusive). The key schema must begin with the same partition key
    --     as the table.
    --
    -- -   @Projection@ - Specifies attributes that are copied (projected) from
    --     the table into the index. These are in addition to the primary key
    --     attributes and index key attributes, which are automatically
    --     projected. Each attribute specification is composed of:
    --
    --     -   @ProjectionType@ - One of the following:
    --
    --         -   @KEYS_ONLY@ - Only the index and primary keys are projected
    --             into the index.
    --
    --         -   @INCLUDE@ - Only the specified table attributes are
    --             projected into the index. The list of projected attributes
    --             is in @NonKeyAttributes@.
    --
    --         -   @ALL@ - All of the table attributes are projected into the
    --             index.
    --
    --     -   @NonKeyAttributes@ - A list of one or more non-key attribute
    --         names that are projected into the secondary index. The total
    --         count of attributes provided in @NonKeyAttributes@, summed
    --         across all of the secondary indexes, must not exceed 100. If you
    --         project the same attribute into two different indexes, this
    --         counts as two distinct attributes when determining the total.
    --
    -- -   @IndexSizeBytes@ - Represents the total size of the index, in bytes.
    --     DynamoDB updates this value approximately every six hours. Recent
    --     changes might not be reflected in this value.
    --
    -- -   @ItemCount@ - Represents the number of items in the index. DynamoDB
    --     updates this value approximately every six hours. Recent changes
    --     might not be reflected in this value.
    --
    -- If the table is in the @DELETING@ state, no information about indexes
    -- will be returned.
    TableDescription -> Maybe [LocalSecondaryIndexDescription]
localSecondaryIndexes :: Prelude.Maybe [LocalSecondaryIndexDescription],
    -- | The provisioned throughput settings for the table, consisting of read
    -- and write capacity units, along with data about increases and decreases.
    TableDescription -> Maybe ProvisionedThroughputDescription
provisionedThroughput :: Prelude.Maybe ProvisionedThroughputDescription,
    -- | Represents replicas of the table.
    TableDescription -> Maybe [ReplicaDescription]
replicas :: Prelude.Maybe [ReplicaDescription],
    -- | Contains details for the restore.
    TableDescription -> Maybe RestoreSummary
restoreSummary :: Prelude.Maybe RestoreSummary,
    -- | The description of the server-side encryption status on the specified
    -- table.
    TableDescription -> Maybe SSEDescription
sSEDescription :: Prelude.Maybe SSEDescription,
    -- | The current DynamoDB Streams configuration for the table.
    TableDescription -> Maybe StreamSpecification
streamSpecification :: Prelude.Maybe StreamSpecification,
    -- | The Amazon Resource Name (ARN) that uniquely identifies the table.
    TableDescription -> Maybe Text
tableArn :: Prelude.Maybe Prelude.Text,
    -- | Contains details of the table class.
    TableDescription -> Maybe TableClassSummary
tableClassSummary :: Prelude.Maybe TableClassSummary,
    -- | Unique identifier for the table for which the backup was created.
    TableDescription -> Maybe Text
tableId :: Prelude.Maybe Prelude.Text,
    -- | The name of the table.
    TableDescription -> Maybe Text
tableName :: Prelude.Maybe Prelude.Text,
    -- | The total size of the specified table, in bytes. DynamoDB updates this
    -- value approximately every six hours. Recent changes might not be
    -- reflected in this value.
    TableDescription -> Maybe Integer
tableSizeBytes :: Prelude.Maybe Prelude.Integer,
    -- | The current state of the table:
    --
    -- -   @CREATING@ - The table is being created.
    --
    -- -   @UPDATING@ - The table\/index configuration is being updated. The
    --     table\/index remains available for data operations when @UPDATING@.
    --
    -- -   @DELETING@ - The table is being deleted.
    --
    -- -   @ACTIVE@ - The table is ready for use.
    --
    -- -   @INACCESSIBLE_ENCRYPTION_CREDENTIALS@ - The KMS key used to encrypt
    --     the table in inaccessible. Table operations may fail due to failure
    --     to use the KMS key. DynamoDB will initiate the table archival
    --     process when a table\'s KMS key remains inaccessible for more than
    --     seven days.
    --
    -- -   @ARCHIVING@ - The table is being archived. Operations are not
    --     allowed until archival is complete.
    --
    -- -   @ARCHIVED@ - The table has been archived. See the ArchivalReason for
    --     more information.
    TableDescription -> Maybe TableStatus
tableStatus :: Prelude.Maybe TableStatus
  }
  deriving (TableDescription -> TableDescription -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TableDescription -> TableDescription -> Bool
$c/= :: TableDescription -> TableDescription -> Bool
== :: TableDescription -> TableDescription -> Bool
$c== :: TableDescription -> TableDescription -> Bool
Prelude.Eq, ReadPrec [TableDescription]
ReadPrec TableDescription
Int -> ReadS TableDescription
ReadS [TableDescription]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TableDescription]
$creadListPrec :: ReadPrec [TableDescription]
readPrec :: ReadPrec TableDescription
$creadPrec :: ReadPrec TableDescription
readList :: ReadS [TableDescription]
$creadList :: ReadS [TableDescription]
readsPrec :: Int -> ReadS TableDescription
$creadsPrec :: Int -> ReadS TableDescription
Prelude.Read, Int -> TableDescription -> ShowS
[TableDescription] -> ShowS
TableDescription -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TableDescription] -> ShowS
$cshowList :: [TableDescription] -> ShowS
show :: TableDescription -> String
$cshow :: TableDescription -> String
showsPrec :: Int -> TableDescription -> ShowS
$cshowsPrec :: Int -> TableDescription -> ShowS
Prelude.Show, forall x. Rep TableDescription x -> TableDescription
forall x. TableDescription -> Rep TableDescription x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep TableDescription x -> TableDescription
$cfrom :: forall x. TableDescription -> Rep TableDescription x
Prelude.Generic)

-- |
-- Create a value of 'TableDescription' 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:
--
-- 'archivalSummary', 'tableDescription_archivalSummary' - Contains information about the table archive.
--
-- 'attributeDefinitions', 'tableDescription_attributeDefinitions' - An array of @AttributeDefinition@ objects. Each of these objects
-- describes one attribute in the table and index key schema.
--
-- Each @AttributeDefinition@ object in this array is composed of:
--
-- -   @AttributeName@ - The name of the attribute.
--
-- -   @AttributeType@ - The data type for the attribute.
--
-- 'billingModeSummary', 'tableDescription_billingModeSummary' - Contains the details for the read\/write capacity mode.
--
-- 'creationDateTime', 'tableDescription_creationDateTime' - The date and time when the table was created, in
-- <http://www.epochconverter.com/ UNIX epoch time> format.
--
-- 'globalSecondaryIndexes', 'tableDescription_globalSecondaryIndexes' - The global secondary indexes, if any, on the table. Each index is scoped
-- to a given partition key value. Each element is composed of:
--
-- -   @Backfilling@ - If true, then the index is currently in the
--     backfilling phase. Backfilling occurs only when a new global
--     secondary index is added to the table. It is the process by which
--     DynamoDB populates the new index with data from the table. (This
--     attribute does not appear for indexes that were created during a
--     @CreateTable@ operation.)
--
--     You can delete an index that is being created during the
--     @Backfilling@ phase when @IndexStatus@ is set to CREATING and
--     @Backfilling@ is true. You can\'t delete the index that is being
--     created when @IndexStatus@ is set to CREATING and @Backfilling@ is
--     false. (This attribute does not appear for indexes that were created
--     during a @CreateTable@ operation.)
--
-- -   @IndexName@ - The name of the global secondary index.
--
-- -   @IndexSizeBytes@ - The total size of the global secondary index, in
--     bytes. DynamoDB updates this value approximately every six hours.
--     Recent changes might not be reflected in this value.
--
-- -   @IndexStatus@ - The current status of the global secondary index:
--
--     -   @CREATING@ - The index is being created.
--
--     -   @UPDATING@ - The index is being updated.
--
--     -   @DELETING@ - The index is being deleted.
--
--     -   @ACTIVE@ - The index is ready for use.
--
-- -   @ItemCount@ - The number of items in the global secondary index.
--     DynamoDB updates this value approximately every six hours. Recent
--     changes might not be reflected in this value.
--
-- -   @KeySchema@ - Specifies the complete index key schema. The attribute
--     names in the key schema must be between 1 and 255 characters
--     (inclusive). The key schema must begin with the same partition key
--     as the table.
--
-- -   @Projection@ - Specifies attributes that are copied (projected) from
--     the table into the index. These are in addition to the primary key
--     attributes and index key attributes, which are automatically
--     projected. Each attribute specification is composed of:
--
--     -   @ProjectionType@ - One of the following:
--
--         -   @KEYS_ONLY@ - Only the index and primary keys are projected
--             into the index.
--
--         -   @INCLUDE@ - In addition to the attributes described in
--             @KEYS_ONLY@, the secondary index will include other non-key
--             attributes that you specify.
--
--         -   @ALL@ - All of the table attributes are projected into the
--             index.
--
--     -   @NonKeyAttributes@ - A list of one or more non-key attribute
--         names that are projected into the secondary index. The total
--         count of attributes provided in @NonKeyAttributes@, summed
--         across all of the secondary indexes, must not exceed 100. If you
--         project the same attribute into two different indexes, this
--         counts as two distinct attributes when determining the total.
--
-- -   @ProvisionedThroughput@ - The provisioned throughput settings for
--     the global secondary index, consisting of read and write capacity
--     units, along with data about increases and decreases.
--
-- If the table is in the @DELETING@ state, no information about indexes
-- will be returned.
--
-- 'globalTableVersion', 'tableDescription_globalTableVersion' - Represents the version of
-- <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GlobalTables.html global tables>
-- in use, if the table is replicated across Amazon Web Services Regions.
--
-- 'itemCount', 'tableDescription_itemCount' - The number of items in the specified table. DynamoDB updates this value
-- approximately every six hours. Recent changes might not be reflected in
-- this value.
--
-- 'keySchema', 'tableDescription_keySchema' - The primary key structure for the table. Each @KeySchemaElement@
-- consists of:
--
-- -   @AttributeName@ - The name of the attribute.
--
-- -   @KeyType@ - The role of the attribute:
--
--     -   @HASH@ - partition key
--
--     -   @RANGE@ - sort key
--
--     The partition key of an item is also known as its /hash attribute/.
--     The term \"hash attribute\" derives from DynamoDB\'s usage of an
--     internal hash function to evenly distribute data items across
--     partitions, based on their partition key values.
--
--     The sort key of an item is also known as its /range attribute/. The
--     term \"range attribute\" derives from the way DynamoDB stores items
--     with the same partition key physically close together, in sorted
--     order by the sort key value.
--
-- For more information about primary keys, see
-- <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html#DataModelPrimaryKey Primary Key>
-- in the /Amazon DynamoDB Developer Guide/.
--
-- 'latestStreamArn', 'tableDescription_latestStreamArn' - The Amazon Resource Name (ARN) that uniquely identifies the latest
-- stream for this table.
--
-- 'latestStreamLabel', 'tableDescription_latestStreamLabel' - A timestamp, in ISO 8601 format, for this stream.
--
-- Note that @LatestStreamLabel@ is not a unique identifier for the stream,
-- because it is possible that a stream from another table might have the
-- same timestamp. However, the combination of the following three elements
-- is guaranteed to be unique:
--
-- -   Amazon Web Services customer ID
--
-- -   Table name
--
-- -   @StreamLabel@
--
-- 'localSecondaryIndexes', 'tableDescription_localSecondaryIndexes' - Represents one or more local secondary indexes on the table. Each index
-- is scoped to a given partition key value. Tables with one or more local
-- secondary indexes are subject to an item collection size limit, where
-- the amount of data within a given item collection cannot exceed 10 GB.
-- Each element is composed of:
--
-- -   @IndexName@ - The name of the local secondary index.
--
-- -   @KeySchema@ - Specifies the complete index key schema. The attribute
--     names in the key schema must be between 1 and 255 characters
--     (inclusive). The key schema must begin with the same partition key
--     as the table.
--
-- -   @Projection@ - Specifies attributes that are copied (projected) from
--     the table into the index. These are in addition to the primary key
--     attributes and index key attributes, which are automatically
--     projected. Each attribute specification is composed of:
--
--     -   @ProjectionType@ - One of the following:
--
--         -   @KEYS_ONLY@ - Only the index and primary keys are projected
--             into the index.
--
--         -   @INCLUDE@ - Only the specified table attributes are
--             projected into the index. The list of projected attributes
--             is in @NonKeyAttributes@.
--
--         -   @ALL@ - All of the table attributes are projected into the
--             index.
--
--     -   @NonKeyAttributes@ - A list of one or more non-key attribute
--         names that are projected into the secondary index. The total
--         count of attributes provided in @NonKeyAttributes@, summed
--         across all of the secondary indexes, must not exceed 100. If you
--         project the same attribute into two different indexes, this
--         counts as two distinct attributes when determining the total.
--
-- -   @IndexSizeBytes@ - Represents the total size of the index, in bytes.
--     DynamoDB updates this value approximately every six hours. Recent
--     changes might not be reflected in this value.
--
-- -   @ItemCount@ - Represents the number of items in the index. DynamoDB
--     updates this value approximately every six hours. Recent changes
--     might not be reflected in this value.
--
-- If the table is in the @DELETING@ state, no information about indexes
-- will be returned.
--
-- 'provisionedThroughput', 'tableDescription_provisionedThroughput' - The provisioned throughput settings for the table, consisting of read
-- and write capacity units, along with data about increases and decreases.
--
-- 'replicas', 'tableDescription_replicas' - Represents replicas of the table.
--
-- 'restoreSummary', 'tableDescription_restoreSummary' - Contains details for the restore.
--
-- 'sSEDescription', 'tableDescription_sSEDescription' - The description of the server-side encryption status on the specified
-- table.
--
-- 'streamSpecification', 'tableDescription_streamSpecification' - The current DynamoDB Streams configuration for the table.
--
-- 'tableArn', 'tableDescription_tableArn' - The Amazon Resource Name (ARN) that uniquely identifies the table.
--
-- 'tableClassSummary', 'tableDescription_tableClassSummary' - Contains details of the table class.
--
-- 'tableId', 'tableDescription_tableId' - Unique identifier for the table for which the backup was created.
--
-- 'tableName', 'tableDescription_tableName' - The name of the table.
--
-- 'tableSizeBytes', 'tableDescription_tableSizeBytes' - The total size of the specified table, in bytes. DynamoDB updates this
-- value approximately every six hours. Recent changes might not be
-- reflected in this value.
--
-- 'tableStatus', 'tableDescription_tableStatus' - The current state of the table:
--
-- -   @CREATING@ - The table is being created.
--
-- -   @UPDATING@ - The table\/index configuration is being updated. The
--     table\/index remains available for data operations when @UPDATING@.
--
-- -   @DELETING@ - The table is being deleted.
--
-- -   @ACTIVE@ - The table is ready for use.
--
-- -   @INACCESSIBLE_ENCRYPTION_CREDENTIALS@ - The KMS key used to encrypt
--     the table in inaccessible. Table operations may fail due to failure
--     to use the KMS key. DynamoDB will initiate the table archival
--     process when a table\'s KMS key remains inaccessible for more than
--     seven days.
--
-- -   @ARCHIVING@ - The table is being archived. Operations are not
--     allowed until archival is complete.
--
-- -   @ARCHIVED@ - The table has been archived. See the ArchivalReason for
--     more information.
newTableDescription ::
  TableDescription
newTableDescription :: TableDescription
newTableDescription =
  TableDescription'
    { $sel:archivalSummary:TableDescription' :: Maybe ArchivalSummary
archivalSummary =
        forall a. Maybe a
Prelude.Nothing,
      $sel:attributeDefinitions:TableDescription' :: Maybe [AttributeDefinition]
attributeDefinitions = forall a. Maybe a
Prelude.Nothing,
      $sel:billingModeSummary:TableDescription' :: Maybe BillingModeSummary
billingModeSummary = forall a. Maybe a
Prelude.Nothing,
      $sel:creationDateTime:TableDescription' :: Maybe POSIX
creationDateTime = forall a. Maybe a
Prelude.Nothing,
      $sel:globalSecondaryIndexes:TableDescription' :: Maybe [GlobalSecondaryIndexDescription]
globalSecondaryIndexes = forall a. Maybe a
Prelude.Nothing,
      $sel:globalTableVersion:TableDescription' :: Maybe Text
globalTableVersion = forall a. Maybe a
Prelude.Nothing,
      $sel:itemCount:TableDescription' :: Maybe Integer
itemCount = forall a. Maybe a
Prelude.Nothing,
      $sel:keySchema:TableDescription' :: Maybe (NonEmpty KeySchemaElement)
keySchema = forall a. Maybe a
Prelude.Nothing,
      $sel:latestStreamArn:TableDescription' :: Maybe Text
latestStreamArn = forall a. Maybe a
Prelude.Nothing,
      $sel:latestStreamLabel:TableDescription' :: Maybe Text
latestStreamLabel = forall a. Maybe a
Prelude.Nothing,
      $sel:localSecondaryIndexes:TableDescription' :: Maybe [LocalSecondaryIndexDescription]
localSecondaryIndexes = forall a. Maybe a
Prelude.Nothing,
      $sel:provisionedThroughput:TableDescription' :: Maybe ProvisionedThroughputDescription
provisionedThroughput = forall a. Maybe a
Prelude.Nothing,
      $sel:replicas:TableDescription' :: Maybe [ReplicaDescription]
replicas = forall a. Maybe a
Prelude.Nothing,
      $sel:restoreSummary:TableDescription' :: Maybe RestoreSummary
restoreSummary = forall a. Maybe a
Prelude.Nothing,
      $sel:sSEDescription:TableDescription' :: Maybe SSEDescription
sSEDescription = forall a. Maybe a
Prelude.Nothing,
      $sel:streamSpecification:TableDescription' :: Maybe StreamSpecification
streamSpecification = forall a. Maybe a
Prelude.Nothing,
      $sel:tableArn:TableDescription' :: Maybe Text
tableArn = forall a. Maybe a
Prelude.Nothing,
      $sel:tableClassSummary:TableDescription' :: Maybe TableClassSummary
tableClassSummary = forall a. Maybe a
Prelude.Nothing,
      $sel:tableId:TableDescription' :: Maybe Text
tableId = forall a. Maybe a
Prelude.Nothing,
      $sel:tableName:TableDescription' :: Maybe Text
tableName = forall a. Maybe a
Prelude.Nothing,
      $sel:tableSizeBytes:TableDescription' :: Maybe Integer
tableSizeBytes = forall a. Maybe a
Prelude.Nothing,
      $sel:tableStatus:TableDescription' :: Maybe TableStatus
tableStatus = forall a. Maybe a
Prelude.Nothing
    }

-- | Contains information about the table archive.
tableDescription_archivalSummary :: Lens.Lens' TableDescription (Prelude.Maybe ArchivalSummary)
tableDescription_archivalSummary :: Lens' TableDescription (Maybe ArchivalSummary)
tableDescription_archivalSummary = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TableDescription' {Maybe ArchivalSummary
archivalSummary :: Maybe ArchivalSummary
$sel:archivalSummary:TableDescription' :: TableDescription -> Maybe ArchivalSummary
archivalSummary} -> Maybe ArchivalSummary
archivalSummary) (\s :: TableDescription
s@TableDescription' {} Maybe ArchivalSummary
a -> TableDescription
s {$sel:archivalSummary:TableDescription' :: Maybe ArchivalSummary
archivalSummary = Maybe ArchivalSummary
a} :: TableDescription)

-- | An array of @AttributeDefinition@ objects. Each of these objects
-- describes one attribute in the table and index key schema.
--
-- Each @AttributeDefinition@ object in this array is composed of:
--
-- -   @AttributeName@ - The name of the attribute.
--
-- -   @AttributeType@ - The data type for the attribute.
tableDescription_attributeDefinitions :: Lens.Lens' TableDescription (Prelude.Maybe [AttributeDefinition])
tableDescription_attributeDefinitions :: Lens' TableDescription (Maybe [AttributeDefinition])
tableDescription_attributeDefinitions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TableDescription' {Maybe [AttributeDefinition]
attributeDefinitions :: Maybe [AttributeDefinition]
$sel:attributeDefinitions:TableDescription' :: TableDescription -> Maybe [AttributeDefinition]
attributeDefinitions} -> Maybe [AttributeDefinition]
attributeDefinitions) (\s :: TableDescription
s@TableDescription' {} Maybe [AttributeDefinition]
a -> TableDescription
s {$sel:attributeDefinitions:TableDescription' :: Maybe [AttributeDefinition]
attributeDefinitions = Maybe [AttributeDefinition]
a} :: TableDescription) 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

-- | Contains the details for the read\/write capacity mode.
tableDescription_billingModeSummary :: Lens.Lens' TableDescription (Prelude.Maybe BillingModeSummary)
tableDescription_billingModeSummary :: Lens' TableDescription (Maybe BillingModeSummary)
tableDescription_billingModeSummary = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TableDescription' {Maybe BillingModeSummary
billingModeSummary :: Maybe BillingModeSummary
$sel:billingModeSummary:TableDescription' :: TableDescription -> Maybe BillingModeSummary
billingModeSummary} -> Maybe BillingModeSummary
billingModeSummary) (\s :: TableDescription
s@TableDescription' {} Maybe BillingModeSummary
a -> TableDescription
s {$sel:billingModeSummary:TableDescription' :: Maybe BillingModeSummary
billingModeSummary = Maybe BillingModeSummary
a} :: TableDescription)

-- | The date and time when the table was created, in
-- <http://www.epochconverter.com/ UNIX epoch time> format.
tableDescription_creationDateTime :: Lens.Lens' TableDescription (Prelude.Maybe Prelude.UTCTime)
tableDescription_creationDateTime :: Lens' TableDescription (Maybe UTCTime)
tableDescription_creationDateTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TableDescription' {Maybe POSIX
creationDateTime :: Maybe POSIX
$sel:creationDateTime:TableDescription' :: TableDescription -> Maybe POSIX
creationDateTime} -> Maybe POSIX
creationDateTime) (\s :: TableDescription
s@TableDescription' {} Maybe POSIX
a -> TableDescription
s {$sel:creationDateTime:TableDescription' :: Maybe POSIX
creationDateTime = Maybe POSIX
a} :: TableDescription) 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 global secondary indexes, if any, on the table. Each index is scoped
-- to a given partition key value. Each element is composed of:
--
-- -   @Backfilling@ - If true, then the index is currently in the
--     backfilling phase. Backfilling occurs only when a new global
--     secondary index is added to the table. It is the process by which
--     DynamoDB populates the new index with data from the table. (This
--     attribute does not appear for indexes that were created during a
--     @CreateTable@ operation.)
--
--     You can delete an index that is being created during the
--     @Backfilling@ phase when @IndexStatus@ is set to CREATING and
--     @Backfilling@ is true. You can\'t delete the index that is being
--     created when @IndexStatus@ is set to CREATING and @Backfilling@ is
--     false. (This attribute does not appear for indexes that were created
--     during a @CreateTable@ operation.)
--
-- -   @IndexName@ - The name of the global secondary index.
--
-- -   @IndexSizeBytes@ - The total size of the global secondary index, in
--     bytes. DynamoDB updates this value approximately every six hours.
--     Recent changes might not be reflected in this value.
--
-- -   @IndexStatus@ - The current status of the global secondary index:
--
--     -   @CREATING@ - The index is being created.
--
--     -   @UPDATING@ - The index is being updated.
--
--     -   @DELETING@ - The index is being deleted.
--
--     -   @ACTIVE@ - The index is ready for use.
--
-- -   @ItemCount@ - The number of items in the global secondary index.
--     DynamoDB updates this value approximately every six hours. Recent
--     changes might not be reflected in this value.
--
-- -   @KeySchema@ - Specifies the complete index key schema. The attribute
--     names in the key schema must be between 1 and 255 characters
--     (inclusive). The key schema must begin with the same partition key
--     as the table.
--
-- -   @Projection@ - Specifies attributes that are copied (projected) from
--     the table into the index. These are in addition to the primary key
--     attributes and index key attributes, which are automatically
--     projected. Each attribute specification is composed of:
--
--     -   @ProjectionType@ - One of the following:
--
--         -   @KEYS_ONLY@ - Only the index and primary keys are projected
--             into the index.
--
--         -   @INCLUDE@ - In addition to the attributes described in
--             @KEYS_ONLY@, the secondary index will include other non-key
--             attributes that you specify.
--
--         -   @ALL@ - All of the table attributes are projected into the
--             index.
--
--     -   @NonKeyAttributes@ - A list of one or more non-key attribute
--         names that are projected into the secondary index. The total
--         count of attributes provided in @NonKeyAttributes@, summed
--         across all of the secondary indexes, must not exceed 100. If you
--         project the same attribute into two different indexes, this
--         counts as two distinct attributes when determining the total.
--
-- -   @ProvisionedThroughput@ - The provisioned throughput settings for
--     the global secondary index, consisting of read and write capacity
--     units, along with data about increases and decreases.
--
-- If the table is in the @DELETING@ state, no information about indexes
-- will be returned.
tableDescription_globalSecondaryIndexes :: Lens.Lens' TableDescription (Prelude.Maybe [GlobalSecondaryIndexDescription])
tableDescription_globalSecondaryIndexes :: Lens' TableDescription (Maybe [GlobalSecondaryIndexDescription])
tableDescription_globalSecondaryIndexes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TableDescription' {Maybe [GlobalSecondaryIndexDescription]
globalSecondaryIndexes :: Maybe [GlobalSecondaryIndexDescription]
$sel:globalSecondaryIndexes:TableDescription' :: TableDescription -> Maybe [GlobalSecondaryIndexDescription]
globalSecondaryIndexes} -> Maybe [GlobalSecondaryIndexDescription]
globalSecondaryIndexes) (\s :: TableDescription
s@TableDescription' {} Maybe [GlobalSecondaryIndexDescription]
a -> TableDescription
s {$sel:globalSecondaryIndexes:TableDescription' :: Maybe [GlobalSecondaryIndexDescription]
globalSecondaryIndexes = Maybe [GlobalSecondaryIndexDescription]
a} :: TableDescription) 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

-- | Represents the version of
-- <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GlobalTables.html global tables>
-- in use, if the table is replicated across Amazon Web Services Regions.
tableDescription_globalTableVersion :: Lens.Lens' TableDescription (Prelude.Maybe Prelude.Text)
tableDescription_globalTableVersion :: Lens' TableDescription (Maybe Text)
tableDescription_globalTableVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TableDescription' {Maybe Text
globalTableVersion :: Maybe Text
$sel:globalTableVersion:TableDescription' :: TableDescription -> Maybe Text
globalTableVersion} -> Maybe Text
globalTableVersion) (\s :: TableDescription
s@TableDescription' {} Maybe Text
a -> TableDescription
s {$sel:globalTableVersion:TableDescription' :: Maybe Text
globalTableVersion = Maybe Text
a} :: TableDescription)

-- | The number of items in the specified table. DynamoDB updates this value
-- approximately every six hours. Recent changes might not be reflected in
-- this value.
tableDescription_itemCount :: Lens.Lens' TableDescription (Prelude.Maybe Prelude.Integer)
tableDescription_itemCount :: Lens' TableDescription (Maybe Integer)
tableDescription_itemCount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TableDescription' {Maybe Integer
itemCount :: Maybe Integer
$sel:itemCount:TableDescription' :: TableDescription -> Maybe Integer
itemCount} -> Maybe Integer
itemCount) (\s :: TableDescription
s@TableDescription' {} Maybe Integer
a -> TableDescription
s {$sel:itemCount:TableDescription' :: Maybe Integer
itemCount = Maybe Integer
a} :: TableDescription)

-- | The primary key structure for the table. Each @KeySchemaElement@
-- consists of:
--
-- -   @AttributeName@ - The name of the attribute.
--
-- -   @KeyType@ - The role of the attribute:
--
--     -   @HASH@ - partition key
--
--     -   @RANGE@ - sort key
--
--     The partition key of an item is also known as its /hash attribute/.
--     The term \"hash attribute\" derives from DynamoDB\'s usage of an
--     internal hash function to evenly distribute data items across
--     partitions, based on their partition key values.
--
--     The sort key of an item is also known as its /range attribute/. The
--     term \"range attribute\" derives from the way DynamoDB stores items
--     with the same partition key physically close together, in sorted
--     order by the sort key value.
--
-- For more information about primary keys, see
-- <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html#DataModelPrimaryKey Primary Key>
-- in the /Amazon DynamoDB Developer Guide/.
tableDescription_keySchema :: Lens.Lens' TableDescription (Prelude.Maybe (Prelude.NonEmpty KeySchemaElement))
tableDescription_keySchema :: Lens' TableDescription (Maybe (NonEmpty KeySchemaElement))
tableDescription_keySchema = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TableDescription' {Maybe (NonEmpty KeySchemaElement)
keySchema :: Maybe (NonEmpty KeySchemaElement)
$sel:keySchema:TableDescription' :: TableDescription -> Maybe (NonEmpty KeySchemaElement)
keySchema} -> Maybe (NonEmpty KeySchemaElement)
keySchema) (\s :: TableDescription
s@TableDescription' {} Maybe (NonEmpty KeySchemaElement)
a -> TableDescription
s {$sel:keySchema:TableDescription' :: Maybe (NonEmpty KeySchemaElement)
keySchema = Maybe (NonEmpty KeySchemaElement)
a} :: TableDescription) 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 Amazon Resource Name (ARN) that uniquely identifies the latest
-- stream for this table.
tableDescription_latestStreamArn :: Lens.Lens' TableDescription (Prelude.Maybe Prelude.Text)
tableDescription_latestStreamArn :: Lens' TableDescription (Maybe Text)
tableDescription_latestStreamArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TableDescription' {Maybe Text
latestStreamArn :: Maybe Text
$sel:latestStreamArn:TableDescription' :: TableDescription -> Maybe Text
latestStreamArn} -> Maybe Text
latestStreamArn) (\s :: TableDescription
s@TableDescription' {} Maybe Text
a -> TableDescription
s {$sel:latestStreamArn:TableDescription' :: Maybe Text
latestStreamArn = Maybe Text
a} :: TableDescription)

-- | A timestamp, in ISO 8601 format, for this stream.
--
-- Note that @LatestStreamLabel@ is not a unique identifier for the stream,
-- because it is possible that a stream from another table might have the
-- same timestamp. However, the combination of the following three elements
-- is guaranteed to be unique:
--
-- -   Amazon Web Services customer ID
--
-- -   Table name
--
-- -   @StreamLabel@
tableDescription_latestStreamLabel :: Lens.Lens' TableDescription (Prelude.Maybe Prelude.Text)
tableDescription_latestStreamLabel :: Lens' TableDescription (Maybe Text)
tableDescription_latestStreamLabel = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TableDescription' {Maybe Text
latestStreamLabel :: Maybe Text
$sel:latestStreamLabel:TableDescription' :: TableDescription -> Maybe Text
latestStreamLabel} -> Maybe Text
latestStreamLabel) (\s :: TableDescription
s@TableDescription' {} Maybe Text
a -> TableDescription
s {$sel:latestStreamLabel:TableDescription' :: Maybe Text
latestStreamLabel = Maybe Text
a} :: TableDescription)

-- | Represents one or more local secondary indexes on the table. Each index
-- is scoped to a given partition key value. Tables with one or more local
-- secondary indexes are subject to an item collection size limit, where
-- the amount of data within a given item collection cannot exceed 10 GB.
-- Each element is composed of:
--
-- -   @IndexName@ - The name of the local secondary index.
--
-- -   @KeySchema@ - Specifies the complete index key schema. The attribute
--     names in the key schema must be between 1 and 255 characters
--     (inclusive). The key schema must begin with the same partition key
--     as the table.
--
-- -   @Projection@ - Specifies attributes that are copied (projected) from
--     the table into the index. These are in addition to the primary key
--     attributes and index key attributes, which are automatically
--     projected. Each attribute specification is composed of:
--
--     -   @ProjectionType@ - One of the following:
--
--         -   @KEYS_ONLY@ - Only the index and primary keys are projected
--             into the index.
--
--         -   @INCLUDE@ - Only the specified table attributes are
--             projected into the index. The list of projected attributes
--             is in @NonKeyAttributes@.
--
--         -   @ALL@ - All of the table attributes are projected into the
--             index.
--
--     -   @NonKeyAttributes@ - A list of one or more non-key attribute
--         names that are projected into the secondary index. The total
--         count of attributes provided in @NonKeyAttributes@, summed
--         across all of the secondary indexes, must not exceed 100. If you
--         project the same attribute into two different indexes, this
--         counts as two distinct attributes when determining the total.
--
-- -   @IndexSizeBytes@ - Represents the total size of the index, in bytes.
--     DynamoDB updates this value approximately every six hours. Recent
--     changes might not be reflected in this value.
--
-- -   @ItemCount@ - Represents the number of items in the index. DynamoDB
--     updates this value approximately every six hours. Recent changes
--     might not be reflected in this value.
--
-- If the table is in the @DELETING@ state, no information about indexes
-- will be returned.
tableDescription_localSecondaryIndexes :: Lens.Lens' TableDescription (Prelude.Maybe [LocalSecondaryIndexDescription])
tableDescription_localSecondaryIndexes :: Lens' TableDescription (Maybe [LocalSecondaryIndexDescription])
tableDescription_localSecondaryIndexes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TableDescription' {Maybe [LocalSecondaryIndexDescription]
localSecondaryIndexes :: Maybe [LocalSecondaryIndexDescription]
$sel:localSecondaryIndexes:TableDescription' :: TableDescription -> Maybe [LocalSecondaryIndexDescription]
localSecondaryIndexes} -> Maybe [LocalSecondaryIndexDescription]
localSecondaryIndexes) (\s :: TableDescription
s@TableDescription' {} Maybe [LocalSecondaryIndexDescription]
a -> TableDescription
s {$sel:localSecondaryIndexes:TableDescription' :: Maybe [LocalSecondaryIndexDescription]
localSecondaryIndexes = Maybe [LocalSecondaryIndexDescription]
a} :: TableDescription) 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 provisioned throughput settings for the table, consisting of read
-- and write capacity units, along with data about increases and decreases.
tableDescription_provisionedThroughput :: Lens.Lens' TableDescription (Prelude.Maybe ProvisionedThroughputDescription)
tableDescription_provisionedThroughput :: Lens' TableDescription (Maybe ProvisionedThroughputDescription)
tableDescription_provisionedThroughput = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TableDescription' {Maybe ProvisionedThroughputDescription
provisionedThroughput :: Maybe ProvisionedThroughputDescription
$sel:provisionedThroughput:TableDescription' :: TableDescription -> Maybe ProvisionedThroughputDescription
provisionedThroughput} -> Maybe ProvisionedThroughputDescription
provisionedThroughput) (\s :: TableDescription
s@TableDescription' {} Maybe ProvisionedThroughputDescription
a -> TableDescription
s {$sel:provisionedThroughput:TableDescription' :: Maybe ProvisionedThroughputDescription
provisionedThroughput = Maybe ProvisionedThroughputDescription
a} :: TableDescription)

-- | Represents replicas of the table.
tableDescription_replicas :: Lens.Lens' TableDescription (Prelude.Maybe [ReplicaDescription])
tableDescription_replicas :: Lens' TableDescription (Maybe [ReplicaDescription])
tableDescription_replicas = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TableDescription' {Maybe [ReplicaDescription]
replicas :: Maybe [ReplicaDescription]
$sel:replicas:TableDescription' :: TableDescription -> Maybe [ReplicaDescription]
replicas} -> Maybe [ReplicaDescription]
replicas) (\s :: TableDescription
s@TableDescription' {} Maybe [ReplicaDescription]
a -> TableDescription
s {$sel:replicas:TableDescription' :: Maybe [ReplicaDescription]
replicas = Maybe [ReplicaDescription]
a} :: TableDescription) 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

-- | Contains details for the restore.
tableDescription_restoreSummary :: Lens.Lens' TableDescription (Prelude.Maybe RestoreSummary)
tableDescription_restoreSummary :: Lens' TableDescription (Maybe RestoreSummary)
tableDescription_restoreSummary = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TableDescription' {Maybe RestoreSummary
restoreSummary :: Maybe RestoreSummary
$sel:restoreSummary:TableDescription' :: TableDescription -> Maybe RestoreSummary
restoreSummary} -> Maybe RestoreSummary
restoreSummary) (\s :: TableDescription
s@TableDescription' {} Maybe RestoreSummary
a -> TableDescription
s {$sel:restoreSummary:TableDescription' :: Maybe RestoreSummary
restoreSummary = Maybe RestoreSummary
a} :: TableDescription)

-- | The description of the server-side encryption status on the specified
-- table.
tableDescription_sSEDescription :: Lens.Lens' TableDescription (Prelude.Maybe SSEDescription)
tableDescription_sSEDescription :: Lens' TableDescription (Maybe SSEDescription)
tableDescription_sSEDescription = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TableDescription' {Maybe SSEDescription
sSEDescription :: Maybe SSEDescription
$sel:sSEDescription:TableDescription' :: TableDescription -> Maybe SSEDescription
sSEDescription} -> Maybe SSEDescription
sSEDescription) (\s :: TableDescription
s@TableDescription' {} Maybe SSEDescription
a -> TableDescription
s {$sel:sSEDescription:TableDescription' :: Maybe SSEDescription
sSEDescription = Maybe SSEDescription
a} :: TableDescription)

-- | The current DynamoDB Streams configuration for the table.
tableDescription_streamSpecification :: Lens.Lens' TableDescription (Prelude.Maybe StreamSpecification)
tableDescription_streamSpecification :: Lens' TableDescription (Maybe StreamSpecification)
tableDescription_streamSpecification = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TableDescription' {Maybe StreamSpecification
streamSpecification :: Maybe StreamSpecification
$sel:streamSpecification:TableDescription' :: TableDescription -> Maybe StreamSpecification
streamSpecification} -> Maybe StreamSpecification
streamSpecification) (\s :: TableDescription
s@TableDescription' {} Maybe StreamSpecification
a -> TableDescription
s {$sel:streamSpecification:TableDescription' :: Maybe StreamSpecification
streamSpecification = Maybe StreamSpecification
a} :: TableDescription)

-- | The Amazon Resource Name (ARN) that uniquely identifies the table.
tableDescription_tableArn :: Lens.Lens' TableDescription (Prelude.Maybe Prelude.Text)
tableDescription_tableArn :: Lens' TableDescription (Maybe Text)
tableDescription_tableArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TableDescription' {Maybe Text
tableArn :: Maybe Text
$sel:tableArn:TableDescription' :: TableDescription -> Maybe Text
tableArn} -> Maybe Text
tableArn) (\s :: TableDescription
s@TableDescription' {} Maybe Text
a -> TableDescription
s {$sel:tableArn:TableDescription' :: Maybe Text
tableArn = Maybe Text
a} :: TableDescription)

-- | Contains details of the table class.
tableDescription_tableClassSummary :: Lens.Lens' TableDescription (Prelude.Maybe TableClassSummary)
tableDescription_tableClassSummary :: Lens' TableDescription (Maybe TableClassSummary)
tableDescription_tableClassSummary = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TableDescription' {Maybe TableClassSummary
tableClassSummary :: Maybe TableClassSummary
$sel:tableClassSummary:TableDescription' :: TableDescription -> Maybe TableClassSummary
tableClassSummary} -> Maybe TableClassSummary
tableClassSummary) (\s :: TableDescription
s@TableDescription' {} Maybe TableClassSummary
a -> TableDescription
s {$sel:tableClassSummary:TableDescription' :: Maybe TableClassSummary
tableClassSummary = Maybe TableClassSummary
a} :: TableDescription)

-- | Unique identifier for the table for which the backup was created.
tableDescription_tableId :: Lens.Lens' TableDescription (Prelude.Maybe Prelude.Text)
tableDescription_tableId :: Lens' TableDescription (Maybe Text)
tableDescription_tableId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TableDescription' {Maybe Text
tableId :: Maybe Text
$sel:tableId:TableDescription' :: TableDescription -> Maybe Text
tableId} -> Maybe Text
tableId) (\s :: TableDescription
s@TableDescription' {} Maybe Text
a -> TableDescription
s {$sel:tableId:TableDescription' :: Maybe Text
tableId = Maybe Text
a} :: TableDescription)

-- | The name of the table.
tableDescription_tableName :: Lens.Lens' TableDescription (Prelude.Maybe Prelude.Text)
tableDescription_tableName :: Lens' TableDescription (Maybe Text)
tableDescription_tableName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TableDescription' {Maybe Text
tableName :: Maybe Text
$sel:tableName:TableDescription' :: TableDescription -> Maybe Text
tableName} -> Maybe Text
tableName) (\s :: TableDescription
s@TableDescription' {} Maybe Text
a -> TableDescription
s {$sel:tableName:TableDescription' :: Maybe Text
tableName = Maybe Text
a} :: TableDescription)

-- | The total size of the specified table, in bytes. DynamoDB updates this
-- value approximately every six hours. Recent changes might not be
-- reflected in this value.
tableDescription_tableSizeBytes :: Lens.Lens' TableDescription (Prelude.Maybe Prelude.Integer)
tableDescription_tableSizeBytes :: Lens' TableDescription (Maybe Integer)
tableDescription_tableSizeBytes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TableDescription' {Maybe Integer
tableSizeBytes :: Maybe Integer
$sel:tableSizeBytes:TableDescription' :: TableDescription -> Maybe Integer
tableSizeBytes} -> Maybe Integer
tableSizeBytes) (\s :: TableDescription
s@TableDescription' {} Maybe Integer
a -> TableDescription
s {$sel:tableSizeBytes:TableDescription' :: Maybe Integer
tableSizeBytes = Maybe Integer
a} :: TableDescription)

-- | The current state of the table:
--
-- -   @CREATING@ - The table is being created.
--
-- -   @UPDATING@ - The table\/index configuration is being updated. The
--     table\/index remains available for data operations when @UPDATING@.
--
-- -   @DELETING@ - The table is being deleted.
--
-- -   @ACTIVE@ - The table is ready for use.
--
-- -   @INACCESSIBLE_ENCRYPTION_CREDENTIALS@ - The KMS key used to encrypt
--     the table in inaccessible. Table operations may fail due to failure
--     to use the KMS key. DynamoDB will initiate the table archival
--     process when a table\'s KMS key remains inaccessible for more than
--     seven days.
--
-- -   @ARCHIVING@ - The table is being archived. Operations are not
--     allowed until archival is complete.
--
-- -   @ARCHIVED@ - The table has been archived. See the ArchivalReason for
--     more information.
tableDescription_tableStatus :: Lens.Lens' TableDescription (Prelude.Maybe TableStatus)
tableDescription_tableStatus :: Lens' TableDescription (Maybe TableStatus)
tableDescription_tableStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TableDescription' {Maybe TableStatus
tableStatus :: Maybe TableStatus
$sel:tableStatus:TableDescription' :: TableDescription -> Maybe TableStatus
tableStatus} -> Maybe TableStatus
tableStatus) (\s :: TableDescription
s@TableDescription' {} Maybe TableStatus
a -> TableDescription
s {$sel:tableStatus:TableDescription' :: Maybe TableStatus
tableStatus = Maybe TableStatus
a} :: TableDescription)

instance Data.FromJSON TableDescription where
  parseJSON :: Value -> Parser TableDescription
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"TableDescription"
      ( \Object
x ->
          Maybe ArchivalSummary
-> Maybe [AttributeDefinition]
-> Maybe BillingModeSummary
-> Maybe POSIX
-> Maybe [GlobalSecondaryIndexDescription]
-> Maybe Text
-> Maybe Integer
-> Maybe (NonEmpty KeySchemaElement)
-> Maybe Text
-> Maybe Text
-> Maybe [LocalSecondaryIndexDescription]
-> Maybe ProvisionedThroughputDescription
-> Maybe [ReplicaDescription]
-> Maybe RestoreSummary
-> Maybe SSEDescription
-> Maybe StreamSpecification
-> Maybe Text
-> Maybe TableClassSummary
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe TableStatus
-> TableDescription
TableDescription'
            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
"ArchivalSummary")
            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
"AttributeDefinitions"
                            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
"BillingModeSummary")
            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
"CreationDateTime")
            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
"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
"GlobalTableVersion")
            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
"ItemCount")
            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
"KeySchema")
            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
"LatestStreamArn")
            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
"LatestStreamLabel")
            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
"LocalSecondaryIndexes"
                            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
"ProvisionedThroughput")
            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
"Replicas" 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
"RestoreSummary")
            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
"SSEDescription")
            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
"StreamSpecification")
            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
"TableArn")
            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
"TableClassSummary")
            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
"TableId")
            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
"TableName")
            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
"TableSizeBytes")
            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
"TableStatus")
      )

instance Prelude.Hashable TableDescription where
  hashWithSalt :: Int -> TableDescription -> Int
hashWithSalt Int
_salt TableDescription' {Maybe Integer
Maybe [ReplicaDescription]
Maybe [LocalSecondaryIndexDescription]
Maybe [GlobalSecondaryIndexDescription]
Maybe [AttributeDefinition]
Maybe (NonEmpty KeySchemaElement)
Maybe Text
Maybe POSIX
Maybe TableStatus
Maybe TableClassSummary
Maybe StreamSpecification
Maybe SSEDescription
Maybe RestoreSummary
Maybe ProvisionedThroughputDescription
Maybe BillingModeSummary
Maybe ArchivalSummary
tableStatus :: Maybe TableStatus
tableSizeBytes :: Maybe Integer
tableName :: Maybe Text
tableId :: Maybe Text
tableClassSummary :: Maybe TableClassSummary
tableArn :: Maybe Text
streamSpecification :: Maybe StreamSpecification
sSEDescription :: Maybe SSEDescription
restoreSummary :: Maybe RestoreSummary
replicas :: Maybe [ReplicaDescription]
provisionedThroughput :: Maybe ProvisionedThroughputDescription
localSecondaryIndexes :: Maybe [LocalSecondaryIndexDescription]
latestStreamLabel :: Maybe Text
latestStreamArn :: Maybe Text
keySchema :: Maybe (NonEmpty KeySchemaElement)
itemCount :: Maybe Integer
globalTableVersion :: Maybe Text
globalSecondaryIndexes :: Maybe [GlobalSecondaryIndexDescription]
creationDateTime :: Maybe POSIX
billingModeSummary :: Maybe BillingModeSummary
attributeDefinitions :: Maybe [AttributeDefinition]
archivalSummary :: Maybe ArchivalSummary
$sel:tableStatus:TableDescription' :: TableDescription -> Maybe TableStatus
$sel:tableSizeBytes:TableDescription' :: TableDescription -> Maybe Integer
$sel:tableName:TableDescription' :: TableDescription -> Maybe Text
$sel:tableId:TableDescription' :: TableDescription -> Maybe Text
$sel:tableClassSummary:TableDescription' :: TableDescription -> Maybe TableClassSummary
$sel:tableArn:TableDescription' :: TableDescription -> Maybe Text
$sel:streamSpecification:TableDescription' :: TableDescription -> Maybe StreamSpecification
$sel:sSEDescription:TableDescription' :: TableDescription -> Maybe SSEDescription
$sel:restoreSummary:TableDescription' :: TableDescription -> Maybe RestoreSummary
$sel:replicas:TableDescription' :: TableDescription -> Maybe [ReplicaDescription]
$sel:provisionedThroughput:TableDescription' :: TableDescription -> Maybe ProvisionedThroughputDescription
$sel:localSecondaryIndexes:TableDescription' :: TableDescription -> Maybe [LocalSecondaryIndexDescription]
$sel:latestStreamLabel:TableDescription' :: TableDescription -> Maybe Text
$sel:latestStreamArn:TableDescription' :: TableDescription -> Maybe Text
$sel:keySchema:TableDescription' :: TableDescription -> Maybe (NonEmpty KeySchemaElement)
$sel:itemCount:TableDescription' :: TableDescription -> Maybe Integer
$sel:globalTableVersion:TableDescription' :: TableDescription -> Maybe Text
$sel:globalSecondaryIndexes:TableDescription' :: TableDescription -> Maybe [GlobalSecondaryIndexDescription]
$sel:creationDateTime:TableDescription' :: TableDescription -> Maybe POSIX
$sel:billingModeSummary:TableDescription' :: TableDescription -> Maybe BillingModeSummary
$sel:attributeDefinitions:TableDescription' :: TableDescription -> Maybe [AttributeDefinition]
$sel:archivalSummary:TableDescription' :: TableDescription -> Maybe ArchivalSummary
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ArchivalSummary
archivalSummary
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [AttributeDefinition]
attributeDefinitions
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe BillingModeSummary
billingModeSummary
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
creationDateTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [GlobalSecondaryIndexDescription]
globalSecondaryIndexes
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
globalTableVersion
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Integer
itemCount
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty KeySchemaElement)
keySchema
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
latestStreamArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
latestStreamLabel
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [LocalSecondaryIndexDescription]
localSecondaryIndexes
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ProvisionedThroughputDescription
provisionedThroughput
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [ReplicaDescription]
replicas
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe RestoreSummary
restoreSummary
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe SSEDescription
sSEDescription
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe StreamSpecification
streamSpecification
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
tableArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe TableClassSummary
tableClassSummary
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
tableId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
tableName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Integer
tableSizeBytes
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe TableStatus
tableStatus

instance Prelude.NFData TableDescription where
  rnf :: TableDescription -> ()
rnf TableDescription' {Maybe Integer
Maybe [ReplicaDescription]
Maybe [LocalSecondaryIndexDescription]
Maybe [GlobalSecondaryIndexDescription]
Maybe [AttributeDefinition]
Maybe (NonEmpty KeySchemaElement)
Maybe Text
Maybe POSIX
Maybe TableStatus
Maybe TableClassSummary
Maybe StreamSpecification
Maybe SSEDescription
Maybe RestoreSummary
Maybe ProvisionedThroughputDescription
Maybe BillingModeSummary
Maybe ArchivalSummary
tableStatus :: Maybe TableStatus
tableSizeBytes :: Maybe Integer
tableName :: Maybe Text
tableId :: Maybe Text
tableClassSummary :: Maybe TableClassSummary
tableArn :: Maybe Text
streamSpecification :: Maybe StreamSpecification
sSEDescription :: Maybe SSEDescription
restoreSummary :: Maybe RestoreSummary
replicas :: Maybe [ReplicaDescription]
provisionedThroughput :: Maybe ProvisionedThroughputDescription
localSecondaryIndexes :: Maybe [LocalSecondaryIndexDescription]
latestStreamLabel :: Maybe Text
latestStreamArn :: Maybe Text
keySchema :: Maybe (NonEmpty KeySchemaElement)
itemCount :: Maybe Integer
globalTableVersion :: Maybe Text
globalSecondaryIndexes :: Maybe [GlobalSecondaryIndexDescription]
creationDateTime :: Maybe POSIX
billingModeSummary :: Maybe BillingModeSummary
attributeDefinitions :: Maybe [AttributeDefinition]
archivalSummary :: Maybe ArchivalSummary
$sel:tableStatus:TableDescription' :: TableDescription -> Maybe TableStatus
$sel:tableSizeBytes:TableDescription' :: TableDescription -> Maybe Integer
$sel:tableName:TableDescription' :: TableDescription -> Maybe Text
$sel:tableId:TableDescription' :: TableDescription -> Maybe Text
$sel:tableClassSummary:TableDescription' :: TableDescription -> Maybe TableClassSummary
$sel:tableArn:TableDescription' :: TableDescription -> Maybe Text
$sel:streamSpecification:TableDescription' :: TableDescription -> Maybe StreamSpecification
$sel:sSEDescription:TableDescription' :: TableDescription -> Maybe SSEDescription
$sel:restoreSummary:TableDescription' :: TableDescription -> Maybe RestoreSummary
$sel:replicas:TableDescription' :: TableDescription -> Maybe [ReplicaDescription]
$sel:provisionedThroughput:TableDescription' :: TableDescription -> Maybe ProvisionedThroughputDescription
$sel:localSecondaryIndexes:TableDescription' :: TableDescription -> Maybe [LocalSecondaryIndexDescription]
$sel:latestStreamLabel:TableDescription' :: TableDescription -> Maybe Text
$sel:latestStreamArn:TableDescription' :: TableDescription -> Maybe Text
$sel:keySchema:TableDescription' :: TableDescription -> Maybe (NonEmpty KeySchemaElement)
$sel:itemCount:TableDescription' :: TableDescription -> Maybe Integer
$sel:globalTableVersion:TableDescription' :: TableDescription -> Maybe Text
$sel:globalSecondaryIndexes:TableDescription' :: TableDescription -> Maybe [GlobalSecondaryIndexDescription]
$sel:creationDateTime:TableDescription' :: TableDescription -> Maybe POSIX
$sel:billingModeSummary:TableDescription' :: TableDescription -> Maybe BillingModeSummary
$sel:attributeDefinitions:TableDescription' :: TableDescription -> Maybe [AttributeDefinition]
$sel:archivalSummary:TableDescription' :: TableDescription -> Maybe ArchivalSummary
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe ArchivalSummary
archivalSummary
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [AttributeDefinition]
attributeDefinitions
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe BillingModeSummary
billingModeSummary
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
creationDateTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [GlobalSecondaryIndexDescription]
globalSecondaryIndexes
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
globalTableVersion
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Integer
itemCount
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty KeySchemaElement)
keySchema
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
latestStreamArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
latestStreamLabel
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [LocalSecondaryIndexDescription]
localSecondaryIndexes
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ProvisionedThroughputDescription
provisionedThroughput
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [ReplicaDescription]
replicas
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe RestoreSummary
restoreSummary
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe SSEDescription
sSEDescription
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe StreamSpecification
streamSpecification
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
tableArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe TableClassSummary
tableClassSummary
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
tableId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
tableName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Integer
tableSizeBytes
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe TableStatus
tableStatus