Does DynamoDB support using one of the specified data types in the primary key of the table?

I am a big fan of CouchDB and totally in love with the card features that emit more than once for each document. I am wondering if something like this can be achieved in DynamoDB by using a string or number set type as part of the hash and range primary key, or as a hash or range attribute, so that the same element can be requested in several ways.

Thank!

+5
source share
1 answer

An interesting question is that I am afraid that the code check and / or test will be fine, but I doubt it:

Amazon DynamoDB String Number Sets API CreateTable AttributeType ( ), , CreateTable AWS Management Console , (. Amazon DynamoDB - NoSQL).

, - - , , ( 100% , , ).


: /

dataypes , . API class KeySchemaElement:

/**
 * Sets the value of the AttributeType property for this object.
 * <p>
 * <b>Constraints:</b><br/>
 * <b>Allowed Values: </b>S, N
 *
 * @param attributeType The new value for the AttributeType property for this object.
 *
 * @see ScalarAttributeType
 */
public void setAttributeType(String attributeType) {
    this.attributeType = attributeType;
}

:

INFO: : : 400, AWS: AmazonDynamoDB, AWS : XXXXXXXX, AWS : ValidationException, AWS: 1 : "SS" "keySchema.hashKeyElement.attributeType" : : [N, S] Failed TestTable

+7

All Articles