MCPcopy Index your code
hub / github.com/awsdocs/aws-lambda-developer-guide / callLambda

Function callLambda

sample-apps/blank-go/function/main.go:17–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15var client = lambda.New(session.New())
16
17func callLambda() (string, error) {
18 input := &lambda.GetAccountSettingsInput{}
19 req, resp := client.GetAccountSettingsRequest(input)
20 err := req.Send()
21 output, _ := json.Marshal(resp.AccountUsage)
22 return string(output), err
23}
24
25func handleRequest(ctx context.Context, event events.SQSEvent) (string, error) {
26 // event

Callers 5

initializeMethod · 0.85
FunctionHandlerMethod · 0.85
initializeMethod · 0.85
FunctionHandlerMethod · 0.85
handleRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected