Class: Convection::Model::Template::Resource::Lambda
Overview
Instance Attribute Summary
#exist, #name, #parent, #properties, #resource_attributes, #template
Instance Method Summary
collapse
#immutable_metadata, #render_tags, #tag, #tags
#as_attribute, attach_method, #deletion_policy, #depends_on, #initialize, properties, property, #property, #reference, type, #type, #with_output
#condition, #render_condition
#_terraform_module_dir_to_flag, #_terraform_module_flag_to_dir, attach_resource, attach_resource_collection, resource_collection_dsl_methods, resource_dsl_methods
#camel_case, included, method_name, #screaming_snake_case, #snake_case
#base64, #find_in_map, #fn_and, #fn_equals, #fn_if, #fn_import_value, #fn_not, #fn_or, #fn_ref, #fn_sub, #get_att, #get_azs, included, #join, mixers, #select
Instance Method Details
#code(&block) ⇒ Object
30
31
32
33
34
|
# File 'lib/convection/model/template/resource/aws_lambda_function.rb', line 30
def code(&block)
function_code = ResourceProperty::LambdaFunctionCode.new(self)
function_code.instance_exec(&block) if block
properties['Code'].set(function_code)
end
|
#concurrency ⇒ Object
#concurrency(value) ⇒ Object
22
|
# File 'lib/convection/model/template/resource/aws_lambda_function.rb', line 22
property :concurrency, 'ReservedConcurrentExecutions'
|
#dead_letter_cfg ⇒ Object
#dead_letter_cfg(value) ⇒ Object
27
|
# File 'lib/convection/model/template/resource/aws_lambda_function.rb', line 27
property :dead_letter_cfg, 'DeadLetterConfig'
|
#dead_letter_config(&block) ⇒ Object
49
50
51
52
53
|
# File 'lib/convection/model/template/resource/aws_lambda_function.rb', line 49
def dead_letter_config(&block)
dead_letter_cfg = ResourceProperty::LambdaFunctionDeadLetterConfig.new(self)
dead_letter_cfg.instance_exec(&block) if block
properties['DeadLetterConfig'].set(dead_letter_cfg)
end
|
#description ⇒ Object
#description(value) ⇒ Object
15
|
# File 'lib/convection/model/template/resource/aws_lambda_function.rb', line 15
property :description, 'Description'
|
#env(value) ⇒ Object
psuedo-property definitions. We add the expected name as a nested DSL for these below.
24
|
# File 'lib/convection/model/template/resource/aws_lambda_function.rb', line 24
property :env, 'Environment'
|
#environment(&block) ⇒ Object
36
37
38
39
40
|
# File 'lib/convection/model/template/resource/aws_lambda_function.rb', line 36
def environment(&block)
env = ResourceProperty::LambdaEnvironment.new(self)
env.instance_exec(&block) if block
properties['Environment'].set(env)
end
|
#function_code ⇒ Object
#function_code(value) ⇒ Object
25
|
# File 'lib/convection/model/template/resource/aws_lambda_function.rb', line 25
property :function_code, 'Code'
|
#function_name ⇒ Object
#function_name(value) ⇒ Object
14
|
# File 'lib/convection/model/template/resource/aws_lambda_function.rb', line 14
property :function_name, 'FunctionName'
|
#handler ⇒ Object
#handler(value) ⇒ Object
16
|
# File 'lib/convection/model/template/resource/aws_lambda_function.rb', line 16
property :handler, 'Handler'
|
#kms_key_arn ⇒ Object
#kms_key_arn(value) ⇒ Object
21
|
# File 'lib/convection/model/template/resource/aws_lambda_function.rb', line 21
property :kms_key_arn, 'KmsKeyArn'
|
#memory_size ⇒ Object
#memory_size(value) ⇒ Object
17
|
# File 'lib/convection/model/template/resource/aws_lambda_function.rb', line 17
property :memory_size, 'MemorySize'
|
#render(*args) ⇒ Object
55
56
57
58
59
|
# File 'lib/convection/model/template/resource/aws_lambda_function.rb', line 55
def render(*args)
super.tap do |resource|
render_tags(resource)
end
end
|
#role ⇒ Object
#role(value) ⇒ Object
20
|
# File 'lib/convection/model/template/resource/aws_lambda_function.rb', line 20
property :role, 'Role'
|
#runtime ⇒ Object
#runtime(value) ⇒ Object
18
|
# File 'lib/convection/model/template/resource/aws_lambda_function.rb', line 18
property :runtime, 'Runtime'
|
#timeout ⇒ Object
#timeout(value) ⇒ Object
19
|
# File 'lib/convection/model/template/resource/aws_lambda_function.rb', line 19
property :timeout, 'Timeout'
|
#vpc_cfg ⇒ Object
#vpc_cfg(value) ⇒ Object
26
|
# File 'lib/convection/model/template/resource/aws_lambda_function.rb', line 26
property :vpc_cfg, 'VpcConfig'
|
#vpc_config(&block) ⇒ Object
43
44
45
46
47
|
# File 'lib/convection/model/template/resource/aws_lambda_function.rb', line 43
def vpc_config(&block)
vpc_cfg = ResourceProperty::LambdaVpcConfig.new(self)
vpc_cfg.instance_exec(&block) if block
properties['VpcConfig'].set(vpc_cfg)
end
|