DynamoDB, , " AttributeDefinitions KeySchema ". - , .
{
"DDBTable": {
"Type": "AWS::DynamoDB::Table",
"Properties": {
"AttributeDefinitions": [
{
"AttributeName": "SchoolId",
"AttributeType": "N"
},
{
"AttributeName": "Name",
"AttributeType": "S"
},
{
"AttributeName": "Address",
"AttributeType": "S"
},
{
"AttributeName": "City",
"AttributeType": "S"
}
],
"TableName": "School",
"KeySchema": [
{
"AttributeName": "SchoolId",
"KeyType": "HASH"
},
{
"AttributeName": "Name",
"KeyType": "RANGE"
}
],
"LocalSecondaryIndexes": [
{
"IndexName": "LastPostIndex",
"KeySchema": [
{
"AttributeName": "SchoolId",
"KeyType": "HASH"
},
{
"AttributeName": "City",
"KeyType": "RANGE"
}
],
"Projection": {
"ProjectionType": "KEYS_ONLY"
}
}
],
"ProvisionedThroughput": {
"ReadCapacityUnits": 5,
"WriteCapacityUnits": 5
},
"Tags": [
{
"Key": "Owner",
"Value": "BlueTeam"
}
]
}