You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::DynamoDB::Types::TableDescription

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb

Overview

Represents the properties of a table.

Instance Attribute Summary collapse

Instance Attribute Details

#attribute_definitionsArray<Types::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.

Returns:



5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
# File 'gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb', line 5454

class TableDescription < Struct.new(
  :attribute_definitions,
  :table_name,
  :key_schema,
  :table_status,
  :creation_date_time,
  :provisioned_throughput,
  :table_size_bytes,
  :item_count,
  :table_arn,
  :table_id,
  :local_secondary_indexes,
  :global_secondary_indexes,
  :stream_specification,
  :latest_stream_label,
  :latest_stream_arn,
  :restore_summary)
  include Aws::Structure
end

#creation_date_timeTime

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

Returns:

  • (Time)


5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
# File 'gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb', line 5454

class TableDescription < Struct.new(
  :attribute_definitions,
  :table_name,
  :key_schema,
  :table_status,
  :creation_date_time,
  :provisioned_throughput,
  :table_size_bytes,
  :item_count,
  :table_arn,
  :table_id,
  :local_secondary_indexes,
  :global_secondary_indexes,
  :stream_specification,
  :latest_stream_label,
  :latest_stream_arn,
  :restore_summary)
  include Aws::Structure
end

#global_secondary_indexesArray<Types::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.)

  • 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 - Only the specified table attributes are projected into the index. The list of projected attributes are 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 20. 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.



5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
# File 'gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb', line 5454

class TableDescription < Struct.new(
  :attribute_definitions,
  :table_name,
  :key_schema,
  :table_status,
  :creation_date_time,
  :provisioned_throughput,
  :table_size_bytes,
  :item_count,
  :table_arn,
  :table_id,
  :local_secondary_indexes,
  :global_secondary_indexes,
  :stream_specification,
  :latest_stream_label,
  :latest_stream_arn,
  :restore_summary)
  include Aws::Structure
end

#item_countInteger

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.

Returns:

  • (Integer)


5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
# File 'gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb', line 5454

class TableDescription < Struct.new(
  :attribute_definitions,
  :table_name,
  :key_schema,
  :table_status,
  :creation_date_time,
  :provisioned_throughput,
  :table_size_bytes,
  :item_count,
  :table_arn,
  :table_id,
  :local_secondary_indexes,
  :global_secondary_indexes,
  :stream_specification,
  :latest_stream_label,
  :latest_stream_arn,
  :restore_summary)
  include Aws::Structure
end

#key_schemaArray<Types::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' 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.

Returns:



5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
# File 'gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb', line 5454

class TableDescription < Struct.new(
  :attribute_definitions,
  :table_name,
  :key_schema,
  :table_status,
  :creation_date_time,
  :provisioned_throughput,
  :table_size_bytes,
  :item_count,
  :table_arn,
  :table_id,
  :local_secondary_indexes,
  :global_secondary_indexes,
  :stream_specification,
  :latest_stream_label,
  :latest_stream_arn,
  :restore_summary)
  include Aws::Structure
end

#latest_stream_arnString

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

Returns:

  • (String)


5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
# File 'gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb', line 5454

class TableDescription < Struct.new(
  :attribute_definitions,
  :table_name,
  :key_schema,
  :table_status,
  :creation_date_time,
  :provisioned_throughput,
  :table_size_bytes,
  :item_count,
  :table_arn,
  :table_id,
  :local_secondary_indexes,
  :global_secondary_indexes,
  :stream_specification,
  :latest_stream_label,
  :latest_stream_arn,
  :restore_summary)
  include Aws::Structure
end

#latest_stream_labelString

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:

  • the AWS customer ID.

  • the table name.

  • the StreamLabel.

Returns:

  • (String)


5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
# File 'gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb', line 5454

class TableDescription < Struct.new(
  :attribute_definitions,
  :table_name,
  :key_schema,
  :table_status,
  :creation_date_time,
  :provisioned_throughput,
  :table_size_bytes,
  :item_count,
  :table_arn,
  :table_id,
  :local_secondary_indexes,
  :global_secondary_indexes,
  :stream_specification,
  :latest_stream_label,
  :latest_stream_arn,
  :restore_summary)
  include Aws::Structure
end

#local_secondary_indexesArray<Types::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 are 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 20. 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.



5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
# File 'gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb', line 5454

class TableDescription < Struct.new(
  :attribute_definitions,
  :table_name,
  :key_schema,
  :table_status,
  :creation_date_time,
  :provisioned_throughput,
  :table_size_bytes,
  :item_count,
  :table_arn,
  :table_id,
  :local_secondary_indexes,
  :global_secondary_indexes,
  :stream_specification,
  :latest_stream_label,
  :latest_stream_arn,
  :restore_summary)
  include Aws::Structure
end

#provisioned_throughputTypes::ProvisionedThroughputDescription

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



5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
# File 'gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb', line 5454

class TableDescription < Struct.new(
  :attribute_definitions,
  :table_name,
  :key_schema,
  :table_status,
  :creation_date_time,
  :provisioned_throughput,
  :table_size_bytes,
  :item_count,
  :table_arn,
  :table_id,
  :local_secondary_indexes,
  :global_secondary_indexes,
  :stream_specification,
  :latest_stream_label,
  :latest_stream_arn,
  :restore_summary)
  include Aws::Structure
end

#restore_summaryTypes::RestoreSummary

Contains details for the restore.



5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
# File 'gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb', line 5454

class TableDescription < Struct.new(
  :attribute_definitions,
  :table_name,
  :key_schema,
  :table_status,
  :creation_date_time,
  :provisioned_throughput,
  :table_size_bytes,
  :item_count,
  :table_arn,
  :table_id,
  :local_secondary_indexes,
  :global_secondary_indexes,
  :stream_specification,
  :latest_stream_label,
  :latest_stream_arn,
  :restore_summary)
  include Aws::Structure
end

#stream_specificationTypes::StreamSpecification

The current DynamoDB Streams configuration for the table.



5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
# File 'gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb', line 5454

class TableDescription < Struct.new(
  :attribute_definitions,
  :table_name,
  :key_schema,
  :table_status,
  :creation_date_time,
  :provisioned_throughput,
  :table_size_bytes,
  :item_count,
  :table_arn,
  :table_id,
  :local_secondary_indexes,
  :global_secondary_indexes,
  :stream_specification,
  :latest_stream_label,
  :latest_stream_arn,
  :restore_summary)
  include Aws::Structure
end

#table_arnString

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

Returns:

  • (String)


5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
# File 'gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb', line 5454

class TableDescription < Struct.new(
  :attribute_definitions,
  :table_name,
  :key_schema,
  :table_status,
  :creation_date_time,
  :provisioned_throughput,
  :table_size_bytes,
  :item_count,
  :table_arn,
  :table_id,
  :local_secondary_indexes,
  :global_secondary_indexes,
  :stream_specification,
  :latest_stream_label,
  :latest_stream_arn,
  :restore_summary)
  include Aws::Structure
end

#table_idString

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

Returns:

  • (String)


5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
# File 'gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb', line 5454

class TableDescription < Struct.new(
  :attribute_definitions,
  :table_name,
  :key_schema,
  :table_status,
  :creation_date_time,
  :provisioned_throughput,
  :table_size_bytes,
  :item_count,
  :table_arn,
  :table_id,
  :local_secondary_indexes,
  :global_secondary_indexes,
  :stream_specification,
  :latest_stream_label,
  :latest_stream_arn,
  :restore_summary)
  include Aws::Structure
end

#table_nameString

The name of the table.

Returns:

  • (String)


5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
# File 'gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb', line 5454

class TableDescription < Struct.new(
  :attribute_definitions,
  :table_name,
  :key_schema,
  :table_status,
  :creation_date_time,
  :provisioned_throughput,
  :table_size_bytes,
  :item_count,
  :table_arn,
  :table_id,
  :local_secondary_indexes,
  :global_secondary_indexes,
  :stream_specification,
  :latest_stream_label,
  :latest_stream_arn,
  :restore_summary)
  include Aws::Structure
end

#table_size_bytesInteger

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.

Returns:

  • (Integer)


5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
# File 'gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb', line 5454

class TableDescription < Struct.new(
  :attribute_definitions,
  :table_name,
  :key_schema,
  :table_status,
  :creation_date_time,
  :provisioned_throughput,
  :table_size_bytes,
  :item_count,
  :table_arn,
  :table_id,
  :local_secondary_indexes,
  :global_secondary_indexes,
  :stream_specification,
  :latest_stream_label,
  :latest_stream_arn,
  :restore_summary)
  include Aws::Structure
end

#table_statusString

The current state of the table:

  • CREATING - The table is being created.

  • UPDATING - The table is being updated.

  • DELETING - The table is being deleted.

  • ACTIVE - The table is ready for use.

Returns:

  • (String)


5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
# File 'gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb', line 5454

class TableDescription < Struct.new(
  :attribute_definitions,
  :table_name,
  :key_schema,
  :table_status,
  :creation_date_time,
  :provisioned_throughput,
  :table_size_bytes,
  :item_count,
  :table_arn,
  :table_id,
  :local_secondary_indexes,
  :global_secondary_indexes,
  :stream_specification,
  :latest_stream_label,
  :latest_stream_arn,
  :restore_summary)
  include Aws::Structure
end