public static string ToAWS(this DynamoDBKeyType typ) { switch (typ) { case DynamoDBKeyType.Hash: return("HASH"); case DynamoDBKeyType.Range: return("RANGE"); default: throw new ArgumentOutOfRangeException("Invalid DynamoDBKeyType"); } }
public DynamoDBKeyDescriptor(string name, DynamoDBKeyType keyType, DynamoDBDataType fieldType) { Name = name; KeyType = keyType; FieldType = fieldType; }