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.12.5 doc/_resource_types/alb_listener.md
awspec-1.12.4 doc/_resource_types/alb_listener.md
awspec-1.12.3 doc/_resource_types/alb_listener.md
awspec-1.12.2 doc/_resource_types/alb_listener.md
awspec-1.12.1 doc/_resource_types/alb_listener.md
awspec-1.12.0 doc/_resource_types/alb_listener.md
awspec-1.11.1 doc/_resource_types/alb_listener.md
awspec-1.11.0 doc/_resource_types/alb_listener.md
awspec-1.10.0 doc/_resource_types/alb_listener.md
awspec-1.9.0 doc/_resource_types/alb_listener.md
awspec-1.8.0 doc/_resource_types/alb_listener.md
awspec-1.7.0 doc/_resource_types/alb_listener.md
awspec-1.6.1 doc/_resource_types/alb_listener.md
awspec-1.6.0 doc/_resource_types/alb_listener.md
awspec-1.5.4 doc/_resource_types/alb_listener.md
awspec-1.5.3 doc/_resource_types/alb_listener.md
awspec-1.5.2 doc/_resource_types/alb_listener.md
awspec-1.5.1 doc/_resource_types/alb_listener.md
awspec-1.5.0 doc/_resource_types/alb_listener.md
awspec-1.4.3 doc/_resource_types/alb_listener.md