ローカルの Amazon Dynamo DB を使用して、次のようにテーブルを作成しようとしています。ID | 開始点 1 | エンドポイント 1 | 開始点 2 | エンドポイント 2 | 速度 | 距離
CreateTable() 関数を使用してみましたが、作成するのが難しいことがわかりました。私は.Net APIを利用しています。
誰でもこれを手に入れるのを手伝ってくれませんか。
私が試したサンプルコードは次のとおりです。
var response = client.CreateTable(new CreateTableRequest
{
TableName = tableName,
AttributeDefinitions = new List<AttributeDefinition>()
{
new AttributeDefinition
{
AttributeName = "Id",
AttributeType = "S"
},
new AttributeDefinition
{
AttributeName = "ReplyDateTime",
AttributeType = "S"
}
},
KeySchema = new List<KeySchemaElement>()
{
new KeySchemaElement()
{
AttributeName = "Id",
KeyType = "HASH"
},
new KeySchemaElement()
{
AttributeName = "ReplyDateTime",
KeyType = "RANGE"
}
},
ProvisionedThroughput = new ProvisionedThroughput
{
ReadCapacityUnits = 10,
WriteCapacityUnits = 5
}
});
2列の場合、正常に機能しています。2列以上の場合、これを達成する方法は?
ありがとう、ビジェイ