MCPcopy Create free account
hub / github.com/aws-samples/aws-lambda-extensions / lambda_handler

Function lambda_handler

ruby-example-wrapper/lambda_function.rb:6–15  ·  view source on GitHub ↗
(event:, context:)

Source from the content-addressed store, hash-verified

4require 'json'
5
6def lambda_handler(event:, context:)
7 begin
8 my_string = 'my string literal'
9 my_string << 'modifying string literal'
10 rescue FrozenError => ex
11 puts ex
12 end
13
14 { statusCode: 200, body: JSON.generate(my_string) }
15end

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected