# File lib/fog/aws/requests/dynamodb/update_item.rb, line 28
        def update_item(table_name, key, options = {}, deprecated_attribute_updates = nil)
          if deprecated_attribute_updates
            raise DeprecatedAttributeUpdates, "The `20111205` DynamoDB API is deprecated. You need to use `ExpressionAttributeValues` instead of `AttributeUpdates`."
            attribute_updates = options
            options = deprecated_attribute_updates
          end

          body = {
            'Key'               => key,
            'TableName'         => table_name,
            'AttributeUpdates'  => attribute_updates,
          }.merge(options)

          request(
            :body     => Fog::JSON.encode(body),
            :headers  => {'x-amz-target' => 'DynamoDB_20120810.UpdateItem'}
          )
        end