cfndsl 1.6.0 → 1.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/spec.yml +2 -2
- data/.github/workflows/spec_publish.yml +1 -1
- data/CHANGELOG.md +22 -2
- data/lib/cfndsl/aws/patches/600_RefKinds_patch.json +0 -36
- data/lib/cfndsl/aws/resource_specification.json +194013 -89919
- data/lib/cfndsl/types.rb +2 -2
- data/lib/cfndsl/version.rb +1 -1
- data/sample/config_service.rb +1 -1
- data/spec/generate_spec.rb +2 -0
- metadata +3 -6
data/lib/cfndsl/types.rb
CHANGED
@@ -38,7 +38,7 @@ module CfnDsl
|
|
38
38
|
# some json incorrectly labelled as Type -> Json instead of PrimitiveType
|
39
39
|
# also, AWS now has the concept of Map which cfndsl had never defined
|
40
40
|
property_type =
|
41
|
-
if
|
41
|
+
if %w[Map Json].include?(property_info['Type'])
|
42
42
|
'Json'
|
43
43
|
elsif property_info['PrimitiveType']
|
44
44
|
property_info['PrimitiveType']
|
@@ -96,7 +96,7 @@ module CfnDsl
|
|
96
96
|
elsif property_info.key?('Properties')
|
97
97
|
property_info['Properties'].each_with_object({}) do |(nested_prop_name, nested_prop_info), extracted|
|
98
98
|
nested_prop_type =
|
99
|
-
if
|
99
|
+
if %w[Map Json].include?(nested_prop_info['Type'])
|
100
100
|
# The Map type and the incorrectly labelled Json type
|
101
101
|
'Json'
|
102
102
|
elsif nested_prop_info['PrimitiveType']
|
data/lib/cfndsl/version.rb
CHANGED
data/sample/config_service.rb
CHANGED
data/spec/generate_spec.rb
CHANGED
@@ -9,7 +9,9 @@ describe Cfnlego do
|
|
9
9
|
it 'formats correctly' do
|
10
10
|
output = "require 'cfndsl'\nCloudFormation do\n Description 'auto generated cloudformation cfndsl template'\n\n "
|
11
11
|
output << " EC2_EIP('EIP') do"
|
12
|
+
output << "\n Address String # http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eip.html#cfn-ec2-eip-address"
|
12
13
|
output << "\n InstanceId String # http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eip.html#cfn-ec2-eip-instanceid"
|
14
|
+
output << "\n IpamPoolId String # http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eip.html#cfn-ec2-eip-ipampoolid"
|
13
15
|
output << "\n PublicIpv4Pool String # http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eip.html#cfn-ec2-eip-publicipv4pool"
|
14
16
|
output << "\n TransferAddress String # http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eip.html#cfn-ec2-eip-transferaddress"
|
15
17
|
output << "\n Domain String # http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eip.html#cfn-ec2-eip-domain"
|
metadata
CHANGED
@@ -1,17 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cfndsl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Jack
|
8
8
|
- Chris Howe
|
9
9
|
- Travis Dempsey
|
10
10
|
- Greg Cockburn
|
11
|
-
autorequire:
|
12
11
|
bindir: exe
|
13
12
|
cert_chain: []
|
14
|
-
date:
|
13
|
+
date: 2025-01-21 00:00:00.000000000 Z
|
15
14
|
dependencies:
|
16
15
|
- !ruby/object:Gem::Dependency
|
17
16
|
name: bundler
|
@@ -178,7 +177,6 @@ homepage: https://github.com/cfndsl/cfndsl
|
|
178
177
|
licenses:
|
179
178
|
- MIT
|
180
179
|
metadata: {}
|
181
|
-
post_install_message:
|
182
180
|
rdoc_options: []
|
183
181
|
require_paths:
|
184
182
|
- lib
|
@@ -193,8 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
193
191
|
- !ruby/object:Gem::Version
|
194
192
|
version: '0'
|
195
193
|
requirements: []
|
196
|
-
rubygems_version: 3.
|
197
|
-
signing_key:
|
194
|
+
rubygems_version: 3.6.2
|
198
195
|
specification_version: 4
|
199
196
|
summary: AWS Cloudformation DSL
|
200
197
|
test_files:
|