Skip to main content

Table

Manages an DynamoDB Table.

Sample code#

provider.DynamoDB.makeTable({
name: "myTable"
properties: () => ({
AttributeDefinitions: [
{
AttributeName: "Id",
AttributeType: "S",
},
],
KeySchema: [
{
AttributeName: "Id",
KeyType: "HASH",
},
],
ProvisionedThroughput: {
ReadCapacityUnits: 5,
WriteCapacityUnits: 5,
},
Tags: [
{
Key: "TOTOKEY",
Value: "TOTO",
},
],
}),
});

Properties#

Dependencies#

Full Examples#

List#

The tables can be filtered with the Table type:

gc l -t Table