Method: Awspec::Type::Lambda#initialize
- Defined in:
- lib/awspec/type/lambda.rb
#initialize(id) ⇒ Lambda
Returns a new instance of Lambda.
3 4 5 6 7 |
# File 'lib/awspec/type/lambda.rb', line 3 def initialize(id) super @resource_via_client = find_lambda(id) @id = @resource_via_client.function_arn if @resource_via_client end |