Database Reference
In-Depth Information
DescribeTable
The following code will display all the table schema of the table with the name
Tbl_Book . As hinted in the CreateTable command, the response of the
DescribeTable and CreateTable requests will be similar (except TableStatus ).
After performing the CreateTable request, TableStatus will be CREATING . So if
we describe the same table after a point of time (once the table has become active), its
status will become ACTIVE .
Have a look at the following code:
{
"TableName":"Tbl_Book"
}
The following is the output of DescribeTable with TableStatus as ACTIVE :
{
"Table": {
"AttributeDefinitions": [
{ "AttributeName": "BookTitle", "AttributeType": "S" },
{ "AttributeName": "Author", "AttributeType": "S"},
{ "AttributeName": "PubDate","AttributeType": "S"},
{ "AttributeName": "Language", "AttributeType": "S"},
{ "AttributeName": "Edition", "AttributeType": "N" }
],
"CreationDateTime": 1.363729002358E9,
"ItemCount": 5,
"KeySchema": [
{"AttributeName": "BookTitle","KeyType": "HASH"},
{"AttributeName": "Author","KeyType": "RANGE"}],
"LocalSecondaryIndexes": [
{ "IndexName": "Idx_PubDate", "KeySchema": [
{"AttributeName": "BookTitle", "KeyType": "HASH" },
{ "AttributeName": "PubDate","KeyType": "RANGE" } ],
"Projection": { "ProjectionType": "KEYS_ONLY" } }
],
"GlobalSecondaryIndexes": [
Search WWH ::




Custom Search