convection 2.2.28.pre.beta.2 → 2.2.29
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 076060eec9c4e8108a8f6bab08a8f5bf9dacfdd7
|
4
|
+
data.tar.gz: a4921ecbc1f0cde9308eebcd78209d7079085283
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d9326cdef296ee8069a2506d008aad5206059a1f6a11ab7f0da3b3e3af4b303677aa7a748dbcef9e8ca3a6cad9485d41e1b8adedad14eb0e1e10e4c88f35ee2
|
7
|
+
data.tar.gz: 655a27c52359dba267a2b088932ba36179e297fb592e16bbfcaa55db464e7ab3dbb550cdcb6f7139857496f958e33156076cc129ca7350078c5a0c107d42804a
|
@@ -9,12 +9,14 @@ module Convection
|
|
9
9
|
# endpoint 'failures@example.com'
|
10
10
|
# protocol 'email'
|
11
11
|
# topic_arn 'arn:aws:sns:us-west-2:123456789012:example-topic'
|
12
|
+
# filter_policy 'Type' => 'Notification', 'MessageId' => 'e3c4e17a-819b-5d95-a0e8-b306c25afda0', 'MessageAttributes' => [{' AttributeName' => 'Name', 'KeyType' => 'HASH' }],
|
12
13
|
# end
|
13
14
|
class SNSSubscription < Resource
|
14
15
|
type 'AWS::SNS::Subscription'
|
15
16
|
property :endpoint, 'Endpoint'
|
16
17
|
property :protocol, 'Protocol'
|
17
18
|
property :topic_arn, 'TopicArn'
|
19
|
+
property :filter_policy, 'FilterPolicy'
|
18
20
|
end
|
19
21
|
end
|
20
22
|
end
|
@@ -8,6 +8,7 @@ class Convection::Model::Template::Resource
|
|
8
8
|
endpoint 'failures@example.com'
|
9
9
|
protocol 'email'
|
10
10
|
topic_arn 'arn:aws:sns:us-west-2:123456789012:example-topic'
|
11
|
+
filter_policy 'Type' => 'Notification', 'MessageId' => 'e3c4e17a-819b-5d95-a0e8-b306c25afda0', 'MessageAttributes' => { 'AttributeName' => 'Name', 'KeyType' => 'HASH' }
|
11
12
|
end
|
12
13
|
end
|
13
14
|
end
|
@@ -31,6 +32,12 @@ class Convection::Model::Template::Resource
|
|
31
32
|
expect(subject['TopicArn']).to eq('arn:aws:sns:us-west-2:123456789012:example-topic')
|
32
33
|
end
|
33
34
|
|
35
|
+
it 'sets the FilterPolicy' do
|
36
|
+
expect(subject['FilterPolicy']).to include('Type' => 'Notification',
|
37
|
+
'MessageId' => 'e3c4e17a-819b-5d95-a0e8-b306c25afda0',
|
38
|
+
'MessageAttributes' => { 'AttributeName' => 'Name', 'KeyType' => 'HASH' })
|
39
|
+
end
|
40
|
+
|
34
41
|
private
|
35
42
|
|
36
43
|
def template_json
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: convection
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.29
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Manero
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -390,9 +390,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
390
390
|
version: '2.2'
|
391
391
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
392
392
|
requirements:
|
393
|
-
- - "
|
393
|
+
- - ">="
|
394
394
|
- !ruby/object:Gem::Version
|
395
|
-
version:
|
395
|
+
version: '0'
|
396
396
|
requirements: []
|
397
397
|
rubyforge_project:
|
398
398
|
rubygems_version: 2.6.13
|