convection 2.3.0 → 2.3.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 80472b7ae2163bf2c2bff8dc870c2e3571257a1d
4
- data.tar.gz: b3b70747b74829069d110b96eccc74b1ae70e902
3
+ metadata.gz: d5158f9099d82281035f1b98709bb0f443d3ada1
4
+ data.tar.gz: a724e838719673d7377529a89689c11acad856c9
5
5
  SHA512:
6
- metadata.gz: fec53677c235b009423cc61dafb3ae9f0a4bd4400d3ee65e67f13441631b21993542d880663aa8017269fd7271e6f99ee083dd2fcb5459fa8cd4f6b9bcd5e989
7
- data.tar.gz: 2f7011b1226f5397465f2c4a9d534cc63fab2c29dea4572d117cd346a024d38ec86e65498505d417e99da24256ac9df9101a0448a50294d7abe99584f20e276c
6
+ metadata.gz: d7679f66d5533e7d9be6865ed2aad5dc360c4b9d35d76b066bf868bf8c81dbe5379f84fc783131dd265c548f18d552cf577648aa5eeca1686b0882f7af7ab1ee
7
+ data.tar.gz: 8b226057ec0b2302cbc297f12688e88ce3a9695754032166130c8e5b770cf990df63d683a8d84d831455ea266a275e21e09befee87554967986e8a64a2455296
@@ -18,6 +18,8 @@ module Convection
18
18
  alias security_groups security_group
19
19
  property :subnet, 'Subnets', :type => :list
20
20
  alias subnets subnet
21
+ property :lb_type, 'Type'
22
+ property :subnet_mappings, 'SubnetMappings', :type => :list
21
23
 
22
24
  # Append a load_balancer_attribute to load_balancer_attributes
23
25
  def load_balancer_attribute(&block)
@@ -26,6 +28,12 @@ module Convection
26
28
  load_balancer_attributes << attribute
27
29
  end
28
30
 
31
+ def subnet_mapping(&block)
32
+ subnet_mapping = ResourceProperty::ELBV2LoadBalancerSubnetMapping.new(self)
33
+ subnet_mapping.instance_exec(&block) if block
34
+ subnet_mappings << subnet_mapping
35
+ end
36
+
29
37
  def render(*args)
30
38
  super.tap do |resource|
31
39
  render_tags(resource)
@@ -0,0 +1,17 @@
1
+ require_relative '../resource_property'
2
+
3
+ module Convection
4
+ module Model
5
+ class Template
6
+ class ResourceProperty
7
+ # Represents an {https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-loadbalancer-subnetmapping.html
8
+ # Elastic Load Balancing LoadBalancer SubnetMapping Type}
9
+ class ELBV2LoadBalancerSubnetMapping < ResourceProperty
10
+ # https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_SubnetMapping.html
11
+ property :subnet_id, 'SubnetId'
12
+ property :allocation_id, 'AllocationId'
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
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.3.0
4
+ version: 2.3.1
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-09-10 00:00:00.000000000 Z
11
+ date: 2018-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -302,6 +302,7 @@ files:
302
302
  - lib/convection/model/template/resource_property/aws_elbv2_listener_rule_action.rb
303
303
  - lib/convection/model/template/resource_property/aws_elbv2_listener_rule_condition.rb
304
304
  - lib/convection/model/template/resource_property/aws_elbv2_load_balancer_attribute.rb
305
+ - lib/convection/model/template/resource_property/aws_elbv2_load_balancer_subnet_mapping.rb
305
306
  - lib/convection/model/template/resource_property/aws_elbv2_target_group_attribute.rb
306
307
  - lib/convection/model/template/resource_property/aws_elbv2_target_group_matcher.rb
307
308
  - lib/convection/model/template/resource_property/aws_elbv2_target_group_target_description.rb