I'm using the latest AWS SDK for PHP 2. There are 2 different pages for the DynamoDB documentation
Even though I'm using the Latest SDK it's behaving like the "DynamoDB before 2011-12-05". Here's the code I'm using which is resulting in the error "Error Type: client, AWS Error Message: Supplied AttributeValue is empty, must contain exactly one of the supported datatypes"
$result = $client->getItem(array(
'ConsistentRead' => true,
'TableName' => 'responsys_users',
'Key' => array(
'HashKeyElement' => array(
'vendor_map_id' => array('N' => '1')
)
)
));
I can't find anything in the API specification or online that's helped solve the problem. Any help would be appreciated!