LambdaWrap returns a CustomResourceLambdaFunction which is something lambda.Start() will understand. The purpose of doing this is so that Response Handling boiler plate is taken away from the customer and it makes writing a Custom Resource simpler. func myLambda(ctx context.Context, event cfn.Even
(lambdaFunction CustomResourceFunction)
| 87 | // lambda.Start(cfn.LambdaWrap(myLambda)) |
| 88 | // } |
| 89 | func LambdaWrap(lambdaFunction CustomResourceFunction) (fn CustomResourceLambdaFunction) { |
| 90 | return lambdaWrapWithClient(lambdaFunction, http.DefaultClient) |
| 91 | } |
| 92 | |
| 93 | // LambdaWrapSNS wraps a Lambda handler with support for SNS-based custom |
| 94 | // resources. Usage and purpose otherwise same as LambdaWrap(). |
searching dependent graphs…