Sha256: d64387b4e65304b8a8d0e717439d371c89188275571bf655f60c3af1eb9d6ec5

Contents?: true

Size: 1.27 KB

Versions: 194

Compression:

Stored size: 1.27 KB

Contents

### exist

```ruby
describe network_acl('my-network-acl') do
  it { should exist }
end
```

### have_subnet

```ruby
describe network_acl('my-network-acl') do
  it { should have_subnet('my-subnet') }
end
```

### have_tag

```ruby
describe network_acl('my-network-acl') do
  it { should have_tag('Name').value('my-network-acl') }
end
```

### belong_to_vpc

```ruby
describe network_acl('my-network-acl') do
  it { should belong_to_vpc('my-vpc') }
end
```

### its(:inbound), its(:outbound), its(:inbound_entries_count), its(:outbound_entries_count)

```ruby
describe network_acl('my-network-acl') do
  its(:inbound) { should be_allowed(80).protocol('tcp').source('123.0.456.789/32') }
  its(:inbound) { should be_denied.rule_number('*').source('0.0.0.0/0') }
  its(:outbound) { should be_allowed.protocol('ALL').source('0.0.0.0/0') }
  its(:inbound_entries_count) { should eq 3 }
  its(:outbound_entries_count) { should eq 2 }
end
```

### advanced

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

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

or

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

Version data entries

194 entries across 194 versions & 4 rubygems

Version Path
awspec-0.75.2 doc/_resource_types/network_acl.md
awspec-0.75.1 doc/_resource_types/network_acl.md
awspec-0.75.0 doc/_resource_types/network_acl.md
awspec-0.74.1 doc/_resource_types/network_acl.md
awspec-0.74.0 doc/_resource_types/network_acl.md
awspec-0.73.2 doc/_resource_types/network_acl.md
awspec-0.73.1 doc/_resource_types/network_acl.md
awspec-0.73.0 doc/_resource_types/network_acl.md
awspec-0.72.0 doc/_resource_types/network_acl.md
awspec-0.71.0 doc/_resource_types/network_acl.md
awspec-0.70.0 doc/_resource_types/network_acl.md
awspec-0.69.1 doc/_resource_types/network_acl.md
awspec-0.69.0 doc/_resource_types/network_acl.md
awspec-0.68.0 doc/_resource_types/network_acl.md
awspec-0.67.1 doc/_resource_types/network_acl.md
awspec-0.67.0 doc/_resource_types/network_acl.md
awspec-0.66.2 doc/_resource_types/network_acl.md
awspec-0.66.1 doc/_resource_types/network_acl.md
awspec-0.66.0 doc/_resource_types/network_acl.md
awspec-0.65.2 doc/_resource_types/network_acl.md