Sha256: 7bb865c1db96ee7c56c543ec11368372f70a7c88218d50b454d6b60a4cee1f5e

Contents?: true

Size: 1.11 KB

Versions: 129

Compression:

Stored size: 1.11 KB

Contents

### exist

```ruby
describe dynamodb_table('my-dynamodb-table') do
  it { should exist }
end
```

### be_active

```ruby
describe dynamodb_table('my-dynamodb-table') do
  it { should be_active }
end
```

### have_attribute_definition

```ruby
describe dynamodb_table('my-dynamodb-table') do
  it { should have_attribute_definition('my-dynamodb-table-attaribute1').attribute_type('S') }
  it { should have_attribute_definition('my-dynamodb-table-attaribute2').attribute_type('N') }
end
```

### have_key_schema

```ruby
describe dynamodb_table('my-dynamodb-table') do
  it { should have_key_schema('my-dynamodb-table-key_schema1').key_type('HASH') }
  it { should have_key_schema('my-dynamodb-table-key_schema2').key_type('RANGE') }
end
```

### advanced

`dynamodb_table` can use `Aws::DynamoDB::Table` resource (see http://docs.aws.amazon.com/sdkforruby/api/Aws/DynamoDB/Table.html).

```ruby
describe dynamodb_table('my-dynamodb-table') do
  its('key_schema.first.key_type') { should eq 'HASH' }
end
```

or

```ruby
describe dynamodb_table('my-dynamodb-table') do
  its('resource.key_schema.first.key_type') { should eq 'HASH' }
end
```

Version data entries

129 entries across 129 versions & 4 rubygems

Version Path
awspec-1.4.2 doc/_resource_types/dynamodb_table.md
awspec-1.4.1 doc/_resource_types/dynamodb_table.md
awspec-1.4.0 doc/_resource_types/dynamodb_table.md
awspec-1.3.1 doc/_resource_types/dynamodb_table.md
awspec-1.3.0 doc/_resource_types/dynamodb_table.md
awspec-1.2.0 doc/_resource_types/dynamodb_table.md
awspec-1.1.0 doc/_resource_types/dynamodb_table.md
awspec-1.0.0 doc/_resource_types/dynamodb_table.md
awspec-1.0.0.rc doc/_resource_types/dynamodb_table.md
awspec-0.88.2 doc/_resource_types/dynamodb_table.md
awspec-0.88.1 doc/_resource_types/dynamodb_table.md
awspec-0.88.0 doc/_resource_types/dynamodb_table.md
awspec-0.87.1 doc/_resource_types/dynamodb_table.md
awspec-0.87.0 doc/_resource_types/dynamodb_table.md
awspec-0.86.0 doc/_resource_types/dynamodb_table.md
cmonson_2ndwatch_awspec-0.85.4 doc/_resource_types/dynamodb_table.md
awspec-0.85.3 doc/_resource_types/dynamodb_table.md
cmonson_2ndwatch_awspec-0.85.3 doc/_resource_types/dynamodb_table.md
awspec-0.85.2 doc/_resource_types/dynamodb_table.md
awspec-0.85.1 doc/_resource_types/dynamodb_table.md