convection 2.2.25 → 2.2.26
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/lib/convection/model/template/resource/aws_lambda_function.rb +11 -0
- data/lib/convection/model/template/resource/aws_rds_db_instance.rb +0 -1
- data/lib/convection/model/template/resource_property/aws_lambda_environment.rb +1 -1
- data/lib/convection/model/template/resource_property/aws_lambda_function_dead_letter_config.rb +14 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67629b1bfd246650231ea70cf404a016ceab6354
|
4
|
+
data.tar.gz: b32049eeedc3149ee59e046070006135037242b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5230522e16a3b8e400cf03a2e66b004e6b4675cea15a0222c9d55ae6c7573ed26ceb8b0b604120670d6320c1b1c1cd534915eb433394922f85f0b9df970009b
|
7
|
+
data.tar.gz: 2dfa31e740a463c0aa41c67918f27a2c4244999cbb5d5a0859a936a270f48a07b97c2eaf25a86c4bd695100c386c24e3d7511ebcfd56f3666ced5dbac6522b2b
|
@@ -8,6 +8,8 @@ module Convection
|
|
8
8
|
# AWS::Lambda::Function
|
9
9
|
##
|
10
10
|
class Lambda < Resource
|
11
|
+
include Model::Mixin::Taggable
|
12
|
+
|
11
13
|
type 'AWS::Lambda::Function'
|
12
14
|
property :function_name, 'FunctionName'
|
13
15
|
property :description, 'Description'
|
@@ -16,10 +18,13 @@ module Convection
|
|
16
18
|
property :runtime, 'Runtime'
|
17
19
|
property :timeout, 'Timeout'
|
18
20
|
property :role, 'Role'
|
21
|
+
property :kms_key_arn, 'KmsKeyArn'
|
22
|
+
property :concurrency, 'ReservedConcurrentExecutions'
|
19
23
|
# psuedo-property definitions. We add the expected name as a nested DSL for these below.
|
20
24
|
property :env, 'Environment'
|
21
25
|
property :function_code, 'Code'
|
22
26
|
property :vpc_cfg, 'VpcConfig'
|
27
|
+
property :dead_letter_cfg, 'DeadLetterConfig'
|
23
28
|
|
24
29
|
# Add code block
|
25
30
|
def code(&block)
|
@@ -40,6 +45,12 @@ module Convection
|
|
40
45
|
vpc_cfg.instance_exec(&block) if block
|
41
46
|
properties['VpcConfig'].set(vpc_cfg)
|
42
47
|
end
|
48
|
+
|
49
|
+
def dead_letter_config(&block)
|
50
|
+
env = ResourceProperty::LambdaFunctionDeadLetterConfig.new(self)
|
51
|
+
env.instance_exec(&block) if block
|
52
|
+
properties['DeadLetterConfig'].set(dead_letter_cfg)
|
53
|
+
end
|
43
54
|
end
|
44
55
|
end
|
45
56
|
end
|
@@ -18,7 +18,6 @@ module Convection
|
|
18
18
|
property :engine_version, 'EngineVersion'
|
19
19
|
property :license_model, 'LicenseModel'
|
20
20
|
property :storage_type, 'StorageType'
|
21
|
-
property :storage_encrypted, 'StorageEncrypted'
|
22
21
|
property :iops, 'Iops'
|
23
22
|
property :port, 'Port'
|
24
23
|
property :master, 'SourceDBInstanceIdentifier'
|
@@ -4,7 +4,7 @@ module Convection
|
|
4
4
|
module Model
|
5
5
|
class Template
|
6
6
|
class ResourceProperty
|
7
|
-
# Represents an {
|
7
|
+
# Represents an {https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-environment.html}
|
8
8
|
class LambdaEnvironment < ResourceProperty
|
9
9
|
property :variables, 'Variables'
|
10
10
|
end
|
data/lib/convection/model/template/resource_property/aws_lambda_function_dead_letter_config.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
require_relative '../resource_property'
|
2
|
+
|
3
|
+
module Convection
|
4
|
+
module Model
|
5
|
+
class Template
|
6
|
+
class ResourceProperty
|
7
|
+
# Represents an {http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-deadletterconfig.html}
|
8
|
+
class LambdaFunctionDeadLetterConfig < ResourceProperty
|
9
|
+
property :target_arn, 'TargetArn'
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
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.2.
|
4
|
+
version: 2.2.26
|
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-
|
11
|
+
date: 2018-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -307,6 +307,7 @@ files:
|
|
307
307
|
- lib/convection/model/template/resource_property/aws_events_rule_target.rb
|
308
308
|
- lib/convection/model/template/resource_property/aws_lambda_environment.rb
|
309
309
|
- lib/convection/model/template/resource_property/aws_lambda_function_code.rb
|
310
|
+
- lib/convection/model/template/resource_property/aws_lambda_function_dead_letter_config.rb
|
310
311
|
- lib/convection/model/template/resource_property/aws_lambda_vpc_config.rb
|
311
312
|
- lib/convection/model/template/resource_property/aws_route53_alias_target.rb
|
312
313
|
- lib/convection/model/template/resource_property/aws_route53_geolocation.rb
|