cfndsl 0.11.11 → 0.11.12

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: f9fe2866f496f8f44ae197c5aa7dbb83e4267417
4
- data.tar.gz: a6d2080549ddc35aa792c836c3aa02e57031e0e5
3
+ metadata.gz: 39c0a723b14a76e495e1e0aa7e7af38c9a34aee9
4
+ data.tar.gz: 32b0b32b2ad45d53168e0606b8e51f278549323e
5
5
  SHA512:
6
- metadata.gz: df5d2810d3f9eb7d346f84555084d8407709933f5459a6af0526842d8a9a842c8a85f4212b23a5dac64369319e8230cb742a3952bef7513ef3ab2830e07e9f4c
7
- data.tar.gz: e303078ccaa30e4f268f6ecc23b22d4d3709102741b30e1394e737b2f6ff1188f1efbd2c36be0c7704cd188c932360a626716b063679810fcde053cd532f4c76
6
+ metadata.gz: d471b2921db35d11f539c749bf48e7a1c5321a3fe8ad3ed2ed7f3e1ef17c170db46054f2b2a37e6470b6d7489b2a7f3cf6c06dc796faf26d47e54ba6d8406f73
7
+ data.tar.gz: bbb8988b364b7029280d9091e7d9aa653e29f8fe9bcd32a3a885aeb3c074bbb6afb567d0dd946f30314be5ae7cc1c6a2dc3322460483cc3f36947f6368961068
@@ -1108,6 +1108,9 @@ Resources:
1108
1108
  EventSourceArn: String
1109
1109
  FunctionName: String
1110
1110
  StartingPosition: String
1111
+ "AWS::EC2::SpotFleet" :
1112
+ Properties:
1113
+ SpotFleetRequestConfigData: SpotFleetRequestConfigData
1111
1114
 
1112
1115
  Types:
1113
1116
  String: String
@@ -1115,6 +1118,36 @@ Types:
1115
1118
  JSON: JSON
1116
1119
  Integer: Integer
1117
1120
  Number: Number
1121
+ Placement:
1122
+ AvailabilityZone: String
1123
+ GroupName: String
1124
+ LaunchSpecifications:
1125
+ BlockDeviceMappings: [ BlockDeviceMapping ]
1126
+ EbsOptimized: Boolean
1127
+ IamInstanceProfile: String
1128
+ ImageId: String
1129
+ InstanceType: String
1130
+ KernelId: String
1131
+ KeyName: String
1132
+ Monitoring: Boolean
1133
+ NetworkInterfaces: [ NetworkInterfaceType ]
1134
+ Placement: Placement
1135
+ RamdiskId: String
1136
+ SecurityGroups: [ String ]
1137
+ SpotPrice: String
1138
+ SubnetId: String
1139
+ UserData: String
1140
+ WeightedCapacity: Number
1141
+ SpotFleetRequestConfigData:
1142
+ AllocationStrategy: String
1143
+ ExcessCapacityTerminationPolicy: String
1144
+ IamFleetRole: String
1145
+ LaunchSpecifications: LaunchSpecifications
1146
+ SpotPrice: String
1147
+ TargetCapacity: Integer
1148
+ TerminateInstancesWithExpiration: Boolean
1149
+ ValidFrom: String
1150
+ ValidUntil: String
1118
1151
  BlockDeviceMapping:
1119
1152
  DeviceName: String
1120
1153
  VirtualName: String
@@ -1298,6 +1331,8 @@ Types:
1298
1331
  Description: String
1299
1332
  DeviceIndex: String
1300
1333
  GroupSet: [ String ]
1334
+ Ipv6AddressCount: Integer
1335
+ Ipv6Addresses: [ String ]
1301
1336
  NetworkInterfaceId: String
1302
1337
  PrivateIpAddress: String
1303
1338
  PrivateIpAddresses: [ PrivateIpAddressSpecification ]
@@ -12,7 +12,7 @@ module CfnDsl
12
12
 
13
13
  # rubocop:disable Metrics/MethodLength, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/CyclomaticComplexity
14
14
  def generate_types(filename)
15
- types = YAML.load(File.open(filename))
15
+ types = YAML.safe_load(File.open(filename))
16
16
  const_set('Types_Internal', types)
17
17
 
18
18
  validate_types(types)
@@ -36,6 +36,11 @@ module CfnDsl
36
36
  Fn.new('Join', [string, array])
37
37
  end
38
38
 
39
+ # Equivalent to the CloudFormation template built in function Fn::Split
40
+ def FnSplit(string, array)
41
+ Fn.new('Split', [string, array])
42
+ end
43
+
39
44
  # Equivalent to the CloudFormation template built in function Fn::And
40
45
  def FnAnd(array)
41
46
  if !array || array.count < 2 || array.count > 10
@@ -5,11 +5,12 @@ require 'cfndsl/names'
5
5
  require 'cfndsl/types'
6
6
 
7
7
  module CfnDsl
8
+ # Types helper
8
9
  # rubocop:disable Metrics/ModuleLength
9
10
  module Types
10
11
  # rubocop:disable Metrics/MethodLength, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/CyclomaticComplexity
11
12
  def self.included(type_def)
12
- types_list = YAML.load(File.open("#{File.dirname(__FILE__)}/#{type_def::TYPE_PREFIX}/types.yaml"))
13
+ types_list = YAML.safe_load(File.open("#{File.dirname(__FILE__)}/#{type_def::TYPE_PREFIX}/types.yaml"))
13
14
  type_def.const_set('Types_Internal', types_list)
14
15
 
15
16
  # Do a little sanity checking - all of the types referenced in Resources
@@ -1,3 +1,3 @@
1
1
  module CfnDsl
2
- VERSION = '0.11.11'.freeze
2
+ VERSION = '0.11.12'.freeze
3
3
  end
@@ -132,6 +132,11 @@ describe CfnDsl::CloudFormationTemplate do
132
132
  expect(func.to_json).to eq('{"Fn::Join":["A",["B","C"]]}')
133
133
  end
134
134
 
135
+ it 'FnSplit' do
136
+ func = subject.FnSplit('|', 'a|b|c')
137
+ expect(func.to_json).to eq('{"Fn::Split":["|","a|b|c"]}')
138
+ end
139
+
135
140
  it 'Ref' do
136
141
  ref = subject.Ref 'X'
137
142
  expect(ref.to_json).to eq('{"Ref":"X"}')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfndsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.11
4
+ version: 0.11.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Jack
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-12-04 00:00:00.000000000 Z
12
+ date: 2017-01-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler