awspec 1.17.3 → 1.17.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/resource_types.md +2 -2
- data/lib/awspec/type/alb_listener.rb +8 -1
- data/lib/awspec/type/nlb_listener.rb +8 -1
- data/lib/awspec/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24a77e8385426709aab7708405c31a6c44f80043
|
4
|
+
data.tar.gz: bc25733590d646e87cf24930f3fe9494b8d0fc49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98c3884402e67f7856551ad7945597fe50cb906a39ee00a7b347843127561443a159f24829ec865682b2f11807dbbe85eb06c0ceaaaa1ce54f7a64381d902c64
|
7
|
+
data.tar.gz: 620fbf415995935dadb197ba200808ed0f8987de02fd2ac7b8be59d1decb2c96f2564b4593198bd1dba718664452c770985f940de2832698adc47261075e2680
|
data/doc/resource_types.md
CHANGED
@@ -1291,7 +1291,7 @@ describe eks('my-eks') do
|
|
1291
1291
|
end
|
1292
1292
|
```
|
1293
1293
|
|
1294
|
-
### its(:name), its(:arn), its(:created_at), its(:version), its(:endpoint), its(:role_arn), its(:status), its(:client_request_token), its(:platform_version)
|
1294
|
+
### its(:name), its(:arn), its(:created_at), its(:version), its(:endpoint), its(:role_arn), its(:logging), its(:status), its(:client_request_token), its(:platform_version)
|
1295
1295
|
## <a name="elasticache">elasticache</a>
|
1296
1296
|
|
1297
1297
|
Elasticache resource type.
|
@@ -3331,7 +3331,7 @@ end
|
|
3331
3331
|
```
|
3332
3332
|
|
3333
3333
|
|
3334
|
-
### its(:name), its(:type), its(:key_id), its(:last_modified_date), its(:last_modified_user), its(:description), its(:allowed_pattern), its(:version)
|
3334
|
+
### its(:name), its(:type), its(:key_id), its(:last_modified_date), its(:last_modified_user), its(:description), its(:allowed_pattern), its(:version), its(:tier), its(:policies)
|
3335
3335
|
### :unlock: Advanced use
|
3336
3336
|
|
3337
3337
|
```ruby
|
@@ -15,7 +15,14 @@ module Awspec::Type
|
|
15
15
|
actions = [actions] if actions.is_a?(Hash)
|
16
16
|
next false if !rule_id.nil? && rule.rule_arn != rule_id
|
17
17
|
next false if !priority.nil? && rule.priority != priority
|
18
|
-
|
18
|
+
unless conditions.nil?
|
19
|
+
next false unless conditions.map do |condition|
|
20
|
+
rule_conds = rule.conditions.select { |rule_cond| rule_cond[:field] == condition[:field] }
|
21
|
+
next if rule_conds.empty?
|
22
|
+
next unless rule_conds.reject { |rule_cond| condition[:values] == rule_cond[:values] }.empty?
|
23
|
+
condition
|
24
|
+
end.compact.size == conditions.size
|
25
|
+
end
|
19
26
|
unless actions.nil?
|
20
27
|
actions = actions.map do |action|
|
21
28
|
if action.key?(:target_group_name)
|
@@ -15,7 +15,14 @@ module Awspec::Type
|
|
15
15
|
actions = [actions] if actions.is_a?(Hash)
|
16
16
|
next false if !rule_id.nil? && rule.rule_arn != rule_id
|
17
17
|
next false if !priority.nil? && rule.priority != priority
|
18
|
-
|
18
|
+
unless conditions.nil?
|
19
|
+
next false unless conditions.map do |condition|
|
20
|
+
rule_conds = rule.conditions.select { |rule_cond| rule_cond[:field] == condition[:field] }
|
21
|
+
next if rule_conds.empty?
|
22
|
+
next unless rule_conds.reject { |rule_cond| condition[:values] == rule_cond[:values] }.empty?
|
23
|
+
condition
|
24
|
+
end.compact.size == conditions.size
|
25
|
+
end
|
19
26
|
unless actions.nil?
|
20
27
|
actions = actions.map do |action|
|
21
28
|
if action.key?(:target_group_name)
|
data/lib/awspec/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.17.
|
4
|
+
version: 1.17.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- k1LoW
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|