Sha256: 74bd7136d6bf5371c249d6848cf2fbb5f5828b933903f73737fb352cf9b0c029

Contents?: true

Size: 634 Bytes

Versions: 194

Compression:

Stored size: 634 Bytes

Contents

### exist

```ruby
describe subnet('my-subnet') do
  it { should exist }
end
```

### be_available, be_pending

```ruby
describe subnet('my-subnet') do
  it { should be_available }
end
```

### have_tag

```ruby
describe subnet('my-subnet') do
  it { should have_tag('Environment').value('QA') }
end
```

### advanced

`subnet` can use `Aws::EC2::Subnet` resource (see http://docs.aws.amazon.com/sdkforruby/api/Aws/EC2/Subnet.html).

```ruby
describe subnet('my-subnet') do
  its('vpc.id') { should eq 'vpc-ab123cde' }
end
```

or

```ruby
describe subnet('my-subnet') do
  its('resource.vpc.id') { should eq 'vpc-ab123cde' }
end
```

Version data entries

194 entries across 194 versions & 4 rubygems

Version Path
awspec-1.31.0 doc/_resource_types/subnet.md
awspec-1.30.0 doc/_resource_types/subnet.md
awspec-1.29.3 doc/_resource_types/subnet.md
awspec-1.29.2 doc/_resource_types/subnet.md
awspec-1.29.1 doc/_resource_types/subnet.md
awspec-1.29.0 doc/_resource_types/subnet.md
awspec-1.28.2 doc/_resource_types/subnet.md
awspec-1.28.1 doc/_resource_types/subnet.md
awspec-1.28.0 doc/_resource_types/subnet.md
awspec-1.27.1 doc/_resource_types/subnet.md
awspec-1.27.0 doc/_resource_types/subnet.md
awspec-1.26.0 doc/_resource_types/subnet.md
awspec-1.25.2 doc/_resource_types/subnet.md
awspec-1.25.1 doc/_resource_types/subnet.md
awspec-1.25.0 doc/_resource_types/subnet.md
awspec-1.24.4 doc/_resource_types/subnet.md
awspec-1.24.3 doc/_resource_types/subnet.md
awspec-1.24.2 doc/_resource_types/subnet.md
awspec-1.24.1 doc/_resource_types/subnet.md
awspec-1.24.0 doc/_resource_types/subnet.md