Class: Convection::Model::Template::Resource::Lambda
- Inherits:
-
Convection::Model::Template::Resource
- Object
- Convection::Model::Template::Resource
- Convection::Model::Template::Resource::Lambda
- Defined in:
- lib/convection/model/template/resource/aws_lambda_function.rb
Overview
AWS::Lambda::Function
Instance Attribute Summary
Attributes inherited from Convection::Model::Template::Resource
#exist, #name, #parent, #properties, #resource_attributes, #template
Instance Method Summary collapse
-
#code(&block) ⇒ Object
Add code block.
- #description(value) ⇒ Object
- #function_code(value) ⇒ Object
- #handler(value) ⇒ Object
- #memory_size(value) ⇒ Object
- #role(value) ⇒ Object
- #runtime(value) ⇒ Object
- #timeout(value) ⇒ Object
- #vpc_cfg(value) ⇒ Object
-
#vpc_config(&block) ⇒ Object
Add vpc_config block.
Methods inherited from Convection::Model::Template::Resource
#as_attribute, attach_method, #deletion_policy, #depends_on, #initialize, properties, property, #property, #reference, #render, type, #type, #with_output
Methods included from Mixin::Conditional
Methods included from DSL::Template::Resource
Methods included from DSL::Helpers
#camel_case, included, method_name, #screaming_snake_case, #snake_case
Methods included from DSL::IntrinsicFunctions
#base64, #find_in_map, #fn_and, #fn_equals, #fn_if, #fn_not, #fn_or, #fn_ref, #get_att, #get_azs, #join, #select
Constructor Details
This class inherits a constructor from Convection::Model::Template::Resource
Instance Method Details
#code(&block) ⇒ Object
Add code block
22 23 24 25 26 |
# File 'lib/convection/model/template/resource/aws_lambda_function.rb', line 22 def code(&block) function_code = ResourceProperty::LambdaFunctionCode.new(self) function_code.instance_exec(&block) if block properties['Code'].set(function_code) end |
#description ⇒ Object #description(value) ⇒ Object
13 |
# File 'lib/convection/model/template/resource/aws_lambda_function.rb', line 13 property :description, 'Description' |
#function_code ⇒ Object #function_code(value) ⇒ Object
12 |
# File 'lib/convection/model/template/resource/aws_lambda_function.rb', line 12 property :function_code, 'Code' |
#handler ⇒ Object #handler(value) ⇒ Object
14 |
# File 'lib/convection/model/template/resource/aws_lambda_function.rb', line 14 property :handler, 'Handler' |
#memory_size ⇒ Object #memory_size(value) ⇒ Object
15 |
# File 'lib/convection/model/template/resource/aws_lambda_function.rb', line 15 property :memory_size, 'MemorySize' |
#role ⇒ Object #role(value) ⇒ Object
18 |
# File 'lib/convection/model/template/resource/aws_lambda_function.rb', line 18 property :role, 'Role' |
#runtime ⇒ Object #runtime(value) ⇒ Object
16 |
# File 'lib/convection/model/template/resource/aws_lambda_function.rb', line 16 property :runtime, 'Runtime', :equal_to => ['nodejs', 'nodejs4.3', 'java8', 'python2.7'] |
#timeout ⇒ Object #timeout(value) ⇒ Object
17 |
# File 'lib/convection/model/template/resource/aws_lambda_function.rb', line 17 property :timeout, 'Timeout' |
#vpc_cfg ⇒ Object #vpc_cfg(value) ⇒ Object
19 |
# File 'lib/convection/model/template/resource/aws_lambda_function.rb', line 19 property :vpc_cfg, 'VpcConfig' |
#vpc_config(&block) ⇒ Object
Add vpc_config block
29 30 31 32 33 |
# File 'lib/convection/model/template/resource/aws_lambda_function.rb', line 29 def vpc_config(&block) vpc_cfg = ResourceProperty::LambdaVpcConfig.new(self) vpc_cfg.instance_exec(&block) if block properties['VpcConfig'].set(vpc_cfg) end |