Module: RubyAemAws::DynamoDB
- Included in:
- Component::StackManagerResources
- Defined in:
- lib/ruby_aem_aws/client/dynamo_db.rb
Overview
Mixin for interaction with AWS DynamoDB
Instance Method Summary collapse
-
#query(filter) ⇒ Object
Queried attribute.
-
#scan(filter) ⇒ Object
Scanned attribute.
Instance Method Details
#query(filter) ⇒ Object
Returns queried attribute.
29 30 31 32 33 34 |
# File 'lib/ruby_aem_aws/client/dynamo_db.rb', line 29 def query(filter) # We need to give AWS time to update the DynamoDB # consistent_read seems not to work everytime sleep 5 dynamodb_client.query(filter) end |
#scan(filter) ⇒ Object
Returns scanned attribute.
20 21 22 23 24 25 |
# File 'lib/ruby_aem_aws/client/dynamo_db.rb', line 20 def scan(filter) # We need to give AWS time to update the DynamoDB # consistent_read seems not to work everytime sleep 5 dynamodb_client.scan(filter) end |