Sha256: afd7fa2015f2e144f0a5d5ec7b5447d4fa6c8bdab4e6d8a9bc0bb81cbec0728d

Contents?: true

Size: 1.33 KB

Versions: 103

Compression:

Stored size: 1.33 KB

Contents

### exist

```ruby
describe alb_listener('arn:aws:elasticloadbalancing:ap-northeast-1:1234567890:listener/app/my-alb/1aa1bb1cc1ddee11/f2f7dc8efc522ab2') do
  it { should exist }
  its(:port) { should eq 80 }
  its(:protocol) { should eq 'HTTP' }
end
```

### have_rule

```ruby
describe alb_listener('arn:aws:elasticloadbalancing:ap-northeast-1:1234567890:listener/app/my-alb/1aa1bb1cc1ddee11/f2f7dc8efc522ab2') do
  it { should have_rule('arn:aws:elasticloadbalancing:ap-northeast-1:1234567890:listener-rule/app/my-alb/1aa1bb1cc1ddee11/f2f7dc8efc522ab2/9683b2d02a6cabee') }
  it do
    should have_rule.priority('10')
      .conditions(field: 'path-pattern', values: ['/img/*'])
      .actions(target_group_arn: 'arn:aws:elasticloadbalancing:ap-northeast-1:1234567890:123456789012:targetgroup/73e2d6bc24d8a067/73e2d6bc24d8a067', type: 'forward')
  end
  it do
    should have_rule.priority('10')
      .if(field: 'path-pattern', values: ['/img/*'])
      .then(target_group_arn: 'arn:aws:elasticloadbalancing:ap-northeast-1:1234567890:123456789012:targetgroup/73e2d6bc24d8a067/73e2d6bc24d8a067', type: 'forward')
  end
  it { should have_rule.conditions([{ field: 'path-pattern', values: ['/admin/*'] }, { field: 'host-header', values: ['admin.example.com'] }]) }
  it { should have_rule.actions(target_group_name: 'my-alb-target-group', type: 'forward') }
end
```

Version data entries

103 entries across 103 versions & 4 rubygems

Version Path
awspec-1.18.3 doc/_resource_types/alb_listener.md
awspec-1.18.2 doc/_resource_types/alb_listener.md
awspec-1.18.1 doc/_resource_types/alb_listener.md
awspec-1.18.0 doc/_resource_types/alb_listener.md
awspec-1.17.4 doc/_resource_types/alb_listener.md
awspec-1.17.3 doc/_resource_types/alb_listener.md
awspec-1.17.2 doc/_resource_types/alb_listener.md
awspec-1.17.1 doc/_resource_types/alb_listener.md
awspec-1.17.0 doc/_resource_types/alb_listener.md
awspec-1.16.1 doc/_resource_types/alb_listener.md
awspec-1.16.0 doc/_resource_types/alb_listener.md
awspec-1.15.3 doc/_resource_types/alb_listener.md
awspec-1.15.2 doc/_resource_types/alb_listener.md
awspec-1.15.1 doc/_resource_types/alb_listener.md
awspec-1.15.0 doc/_resource_types/alb_listener.md
awspec-1.14.1 doc/_resource_types/alb_listener.md
awspec-1.14.0 doc/_resource_types/alb_listener.md
awspec-1.13.0 doc/_resource_types/alb_listener.md
awspec-1.12.7 doc/_resource_types/alb_listener.md
awspec-1.12.6 doc/_resource_types/alb_listener.md