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.23.0 doc/_resource_types/dynamodb_table.md
awspec-1.22.1 doc/_resource_types/dynamodb_table.md
awspec-1.22.0 doc/_resource_types/dynamodb_table.md
awspec-1.21.1 doc/_resource_types/dynamodb_table.md
awspec-1.21.0 doc/_resource_types/dynamodb_table.md
awspec-1.20.0 doc/_resource_types/dynamodb_table.md
awspec-1.19.2 doc/_resource_types/dynamodb_table.md
awspec-1.19.1 doc/_resource_types/dynamodb_table.md
awspec-1.19.0 doc/_resource_types/dynamodb_table.md
cthiesfork-awspec-1.2.4 doc/_resource_types/dynamodb_table.md
awspec-api_gateway_extended-1.2.4 doc/_resource_types/dynamodb_table.md
awspec-api_gateway_extended-1.2.3 doc/_resource_types/dynamodb_table.md
awspec-1.18.6 doc/_resource_types/dynamodb_table.md
cthiesfork-awspec-1.2.2 doc/_resource_types/dynamodb_table.md
cthiesfork-awspec-1.2.1 doc/_resource_types/dynamodb_table.md
awspec-1.18.5 doc/_resource_types/dynamodb_table.md
cthiesfork-awspec-1.2.0 doc/_resource_types/dynamodb_table.md
cthiesfork-awspec-1.1.0 doc/_resource_types/dynamodb_table.md
cthiesfork-awspec-1.0.0 doc/_resource_types/dynamodb_table.md
awspec-1.18.4 doc/_resource_types/dynamodb_table.md