Sha256: 4caeed7bd24c9bcd2db636af7c1e08173f79c572b62a31f8b24d44258b55b7f6

Contents?: true

Size: 1.48 KB

Versions: 1

Compression:

Stored size: 1.48 KB

Contents

# Dynamodb::Streams::Client

[DynamoDB Streams](http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.html) client.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'dynamodb-streams-client'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install dynamodb-streams-client

## Usage

```ruby
require 'dynamodb/streams/client'
require 'pp'

client = DynamoDB::Streams::Client.new(
  access_key_id: 'YOUR_ACCESS_KEY_ID',
  secret_access_key: 'YOUR_SECRET_ACCESS_KEY',
  endpoint: '...')

#client.debug = true

pp client.query('ListStreams')
#=> {"StreamIds"=>
#     ["...",
#      "...",
#      "..."]}
```

## CLI

```sh
$ dynamodb-streams
Commands:
  dynamodb-streams describe_stream STREAM_ID                                  # Returns information about a stream
  dynamodb-streams get_records SHARD_ITERATOR                                 # Retrieves the stream records
  dynamodb-streams get_shard_iterator STREAM_ID SHARD_ID SHARD_ITERATOR_TYPE  # Returns a shard iterator
  dynamodb-streams help [COMMAND]                                             # Describe available commands or one specific command
  dynamodb-streams list_streams                                               # Returns an array of stream IDs

Options:
  -k, [--access-key=ACCESS-KEY]
  -s, [--secret-key=SECRET-KEY]
  -e, [--endpoint=ENDPOINT]
  -r, [--region=REGION]
```

### Follow record

```sh
dynamodb-streams get_records xxxxxxxx-xxxx-... -f --limit 10
```

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dynamodb-streams-client-0.0.3 README.md