cfn-model 0.1.3 → 0.1.4

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: 0c402cf6ebc928b74723f82d358b8b3c0f5b4f5a
4
- data.tar.gz: 18fb56389b156528c45a9fdc37619e67bdac6744
3
+ metadata.gz: c6f43d459260c77c433451c5c1a628635631278e
4
+ data.tar.gz: 8360ce0a0f41b79465d7a3092498297a19f57cad
5
5
  SHA512:
6
- metadata.gz: 5f750b8f2b4f266528646de21e42662536f36dc061caa1750e800913d26bd1f509c19a7412199de0b99ab46b3db8e8b92790e56be27df52fa6d45b036d8be457
7
- data.tar.gz: 3944080255c4d7615f5f1b216b9998e86187711c0dc7a349eed1c059808aa9fbcdece2fb2e86fcf01d45914ead2586c0e6f36b2a2703d9154b3408d006fe8955
6
+ metadata.gz: 6b09b830b77f9ad0174577bdae445de909f2b8de493f376f3b6885fd71da8ad108bb84d0989600e7a163f022d2258bf9a754d747838a68d99ed33068123debd0
7
+ data.tar.gz: f14587733fdd326dc524d3603f998b4334821358a3c2654e02a13be6b04193cc1831310cd37f7b2cc72b4f20640b7ae7cdfa5060bfac6e7dce75545621df042e
@@ -14,7 +14,15 @@ class CfnParser
14
14
  # this will convert any !Ref or !GetAtt into tranditional hash like in json
15
15
  YAML.add_domain_type('', 'Ref') { |type, val| { 'Ref' => val } }
16
16
 
17
- %w(GetAtt Join Base64 Sub Split Select ImportValue GetAZs FindInMap And Or If Not).each do |function_name|
17
+ YAML.add_domain_type('', 'GetAtt') do |type, val|
18
+ if val.is_a? String
19
+ val = val.split('.')
20
+ end
21
+
22
+ { 'Fn::GetAtt' => val }
23
+ end
24
+
25
+ %w(Join Base64 Sub Split Select ImportValue GetAZs FindInMap And Or If Not).each do |function_name|
18
26
  YAML.add_domain_type('', function_name) { |type, val| { "Fn::#{function_name}" => val } }
19
27
  end
20
28
 
@@ -32,8 +32,20 @@ mapping:
32
32
  # sigh this could be List<AWS::EC2::Subnet::Id> so can't enfore seq
33
33
  Subnets:
34
34
  type: any
35
- required: yes
35
+ required: no
36
36
 
37
+ SubnetMappings:
38
+ type: seq
39
+ required: no
40
+ sequence:
41
+ - type: map
42
+ mapping:
43
+ SubnetId:
44
+ type: any
45
+ required: yes
46
+ AllocationId:
47
+ type: any
48
+ required: yes
37
49
  Tags:
38
50
  type: seq
39
51
  required: no
@@ -48,6 +60,10 @@ mapping:
48
60
  required: yes
49
61
  =:
50
62
  type: any
63
+
64
+ Type:
65
+ type: any
66
+ required: no
51
67
  =:
52
68
  type: any
53
69
  =:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfn-model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Kascic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-31 00:00:00.000000000 Z
11
+ date: 2017-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kwalify