Sha256: 940f4fcfc02b493bdd12d4ca974399cdb3eda2837c2d208e8b630be6f966cf4a

Contents?: true

Size: 976 Bytes

Versions: 36

Compression:

Stored size: 976 Bytes

Contents

module Fog
  module AWS
    class DynamoDB
      class Real
        def batch_put_item(request_items)
          Fog::Logger.deprecation("batch_put_item is deprecated, use batch_write_item instead")
          batch_write_item(request_items)
        end

        #request_items has form:
        #{"table_name"=>
        #  [{"PutRequest"=>
        #    {"Item"=>
        #      {"hash_key"=>{"N"=>"99"},
        #       "range_key"=>{"N"=>"99"},
        #       "attribute"=>{"S"=>"hi"}
        #       }}}, ... ]}
        # For more information:
        # http://docs.amazonwebservices.com/amazondynamodb/latest/developerguide/API_BatchWriteItems.html
        def batch_write_item(request_items)
          body = {
            'RequestItems' => request_items
          }

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

Version data entries

36 entries across 36 versions & 5 rubygems

Version Path
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-aws-0.7.5/lib/fog/aws/requests/dynamodb/batch_write_item.rb
fog-aws-0.7.6 lib/fog/aws/requests/dynamodb/batch_write_item.rb
fog-aws-0.7.5 lib/fog/aws/requests/dynamodb/batch_write_item.rb
fog-aws-0.7.4 lib/fog/aws/requests/dynamodb/batch_write_item.rb
fog-aws-0.7.3 lib/fog/aws/requests/dynamodb/batch_write_item.rb
fog-aws-0.7.2 lib/fog/aws/requests/dynamodb/batch_write_item.rb
fog-aws-0.6.0 lib/fog/aws/requests/dynamodb/batch_write_item.rb
fog-aws-0.5.0 lib/fog/aws/requests/dynamodb/batch_write_item.rb
fog-aws-0.4.1 lib/fog/aws/requests/dynamodb/batch_write_item.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/aws/requests/dynamodb/batch_write_item.rb
fog-aws-0.4.0 lib/fog/aws/requests/dynamodb/batch_write_item.rb
fog-aws-0.3.0 lib/fog/aws/requests/dynamodb/batch_write_item.rb
fog-aws-0.2.2 lib/fog/aws/requests/dynamodb/batch_write_item.rb
fog-aws-0.2.0 lib/fog/aws/requests/dynamodb/batch_write_item.rb
fog-aws-0.1.2 lib/fog/aws/requests/dynamodb/batch_write_item.rb
fog-aws-0.1.1 lib/fog/aws/requests/dynamodb/batch_write_item.rb
fog-aws-0.1.0 lib/fog/aws/requests/dynamodb/batch_write_item.rb
fog-aws-0.0.8 lib/fog/aws/requests/dynamodb/batch_write_item.rb
fog-aws-0.0.7 lib/fog/aws/requests/dynamodb/batch_write_item.rb
fog-aws-0.0.6 lib/fog/aws/requests/dynamodb/batch_write_item.rb