amazonka-dynamodb-2.0: Amazon DynamoDB SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.DynamoDB.Types.TableDescription

Description

 
Synopsis

Documentation

data TableDescription Source #

Represents the properties of a table.

See: newTableDescription smart constructor.

Constructors

TableDescription' 

Fields

  • archivalSummary :: Maybe ArchivalSummary

    Contains information about the table archive.

  • attributeDefinitions :: Maybe [AttributeDefinition]

    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 :: Maybe BillingModeSummary

    Contains the details for the read/write capacity mode.

  • creationDateTime :: Maybe POSIX

    The date and time when the table was created, in UNIX epoch time format.

  • globalSecondaryIndexes :: Maybe [GlobalSecondaryIndexDescription]

    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 :: Maybe Text

    Represents the version of global tables in use, if the table is replicated across Amazon Web Services Regions.

  • itemCount :: Maybe Integer

    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 :: Maybe (NonEmpty KeySchemaElement)

    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 Primary Key in the Amazon DynamoDB Developer Guide.

  • latestStreamArn :: Maybe Text

    The Amazon Resource Name (ARN) that uniquely identifies the latest stream for this table.

  • latestStreamLabel :: Maybe 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
  • localSecondaryIndexes :: Maybe [LocalSecondaryIndexDescription]

    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 :: Maybe ProvisionedThroughputDescription

    The provisioned throughput settings for the table, consisting of read and write capacity units, along with data about increases and decreases.

  • replicas :: Maybe [ReplicaDescription]

    Represents replicas of the table.

  • restoreSummary :: Maybe RestoreSummary

    Contains details for the restore.

  • sSEDescription :: Maybe SSEDescription

    The description of the server-side encryption status on the specified table.

  • streamSpecification :: Maybe StreamSpecification

    The current DynamoDB Streams configuration for the table.

  • tableArn :: Maybe Text

    The Amazon Resource Name (ARN) that uniquely identifies the table.

  • tableClassSummary :: Maybe TableClassSummary

    Contains details of the table class.

  • tableId :: Maybe Text

    Unique identifier for the table for which the backup was created.

  • tableName :: Maybe Text

    The name of the table.

  • tableSizeBytes :: Maybe Integer

    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 :: Maybe 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.

Instances

Instances details
FromJSON TableDescription Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.TableDescription

Generic TableDescription Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.TableDescription

Associated Types

type Rep TableDescription :: Type -> Type #

Read TableDescription Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.TableDescription

Show TableDescription Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.TableDescription

NFData TableDescription Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.TableDescription

Methods

rnf :: TableDescription -> () #

Eq TableDescription Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.TableDescription

Hashable TableDescription Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.TableDescription

type Rep TableDescription Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.TableDescription

type Rep TableDescription = D1 ('MetaData "TableDescription" "Amazonka.DynamoDB.Types.TableDescription" "amazonka-dynamodb-2.0-GNxlseyeFiu302JKQwQrUS" 'False) (C1 ('MetaCons "TableDescription'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "archivalSummary") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ArchivalSummary)) :*: S1 ('MetaSel ('Just "attributeDefinitions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [AttributeDefinition]))) :*: (S1 ('MetaSel ('Just "billingModeSummary") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe BillingModeSummary)) :*: (S1 ('MetaSel ('Just "creationDateTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "globalSecondaryIndexes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [GlobalSecondaryIndexDescription]))))) :*: ((S1 ('MetaSel ('Just "globalTableVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "itemCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "keySchema") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty KeySchemaElement))))) :*: (S1 ('MetaSel ('Just "latestStreamArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "latestStreamLabel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "localSecondaryIndexes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [LocalSecondaryIndexDescription])))))) :*: (((S1 ('MetaSel ('Just "provisionedThroughput") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ProvisionedThroughputDescription)) :*: S1 ('MetaSel ('Just "replicas") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ReplicaDescription]))) :*: (S1 ('MetaSel ('Just "restoreSummary") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RestoreSummary)) :*: (S1 ('MetaSel ('Just "sSEDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SSEDescription)) :*: S1 ('MetaSel ('Just "streamSpecification") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe StreamSpecification))))) :*: ((S1 ('MetaSel ('Just "tableArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "tableClassSummary") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TableClassSummary)) :*: S1 ('MetaSel ('Just "tableId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "tableName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "tableSizeBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "tableStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TableStatus))))))))

newTableDescription :: TableDescription Source #

Create a value of TableDescription with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:archivalSummary:TableDescription', tableDescription_archivalSummary - Contains information about the table archive.

$sel:attributeDefinitions:TableDescription', 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.

$sel:billingModeSummary:TableDescription', tableDescription_billingModeSummary - Contains the details for the read/write capacity mode.

$sel:creationDateTime:TableDescription', tableDescription_creationDateTime - The date and time when the table was created, in UNIX epoch time format.

TableDescription, 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.

$sel:globalTableVersion:TableDescription', tableDescription_globalTableVersion - Represents the version of global tables in use, if the table is replicated across Amazon Web Services Regions.

TableDescription, 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.

TableDescription, 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 Primary Key in the Amazon DynamoDB Developer Guide.

$sel:latestStreamArn:TableDescription', tableDescription_latestStreamArn - The Amazon Resource Name (ARN) that uniquely identifies the latest stream for this table.

$sel:latestStreamLabel:TableDescription', 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

$sel:localSecondaryIndexes:TableDescription', 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.

TableDescription, tableDescription_provisionedThroughput - The provisioned throughput settings for the table, consisting of read and write capacity units, along with data about increases and decreases.

$sel:replicas:TableDescription', tableDescription_replicas - Represents replicas of the table.

$sel:restoreSummary:TableDescription', tableDescription_restoreSummary - Contains details for the restore.

$sel:sSEDescription:TableDescription', tableDescription_sSEDescription - The description of the server-side encryption status on the specified table.

$sel:streamSpecification:TableDescription', tableDescription_streamSpecification - The current DynamoDB Streams configuration for the table.

$sel:tableArn:TableDescription', tableDescription_tableArn - The Amazon Resource Name (ARN) that uniquely identifies the table.

$sel:tableClassSummary:TableDescription', tableDescription_tableClassSummary - Contains details of the table class.

$sel:tableId:TableDescription', tableDescription_tableId - Unique identifier for the table for which the backup was created.

$sel:tableName:TableDescription', tableDescription_tableName - The name of the table.

$sel:tableSizeBytes:TableDescription', 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.

$sel:tableStatus:TableDescription', 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.

tableDescription_archivalSummary :: Lens' TableDescription (Maybe ArchivalSummary) Source #

Contains information about the table archive.

tableDescription_attributeDefinitions :: Lens' TableDescription (Maybe [AttributeDefinition]) Source #

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_billingModeSummary :: Lens' TableDescription (Maybe BillingModeSummary) Source #

Contains the details for the read/write capacity mode.

tableDescription_creationDateTime :: Lens' TableDescription (Maybe UTCTime) Source #

The date and time when the table was created, in UNIX epoch time format.

tableDescription_globalSecondaryIndexes :: Lens' TableDescription (Maybe [GlobalSecondaryIndexDescription]) Source #

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_globalTableVersion :: Lens' TableDescription (Maybe Text) Source #

Represents the version of global tables in use, if the table is replicated across Amazon Web Services Regions.

tableDescription_itemCount :: Lens' TableDescription (Maybe Integer) Source #

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_keySchema :: Lens' TableDescription (Maybe (NonEmpty KeySchemaElement)) Source #

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 Primary Key in the Amazon DynamoDB Developer Guide.

tableDescription_latestStreamArn :: Lens' TableDescription (Maybe Text) Source #

The Amazon Resource Name (ARN) that uniquely identifies the latest stream for this table.

tableDescription_latestStreamLabel :: Lens' TableDescription (Maybe Text) Source #

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_localSecondaryIndexes :: Lens' TableDescription (Maybe [LocalSecondaryIndexDescription]) Source #

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_provisionedThroughput :: Lens' TableDescription (Maybe ProvisionedThroughputDescription) Source #

The provisioned throughput settings for the table, consisting of read and write capacity units, along with data about increases and decreases.

tableDescription_sSEDescription :: Lens' TableDescription (Maybe SSEDescription) Source #

The description of the server-side encryption status on the specified table.

tableDescription_streamSpecification :: Lens' TableDescription (Maybe StreamSpecification) Source #

The current DynamoDB Streams configuration for the table.

tableDescription_tableArn :: Lens' TableDescription (Maybe Text) Source #

The Amazon Resource Name (ARN) that uniquely identifies the table.

tableDescription_tableId :: Lens' TableDescription (Maybe Text) Source #

Unique identifier for the table for which the backup was created.

tableDescription_tableSizeBytes :: Lens' TableDescription (Maybe Integer) Source #

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_tableStatus :: Lens' TableDescription (Maybe TableStatus) Source #

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.