MCPcopy Create free account
hub / github.com/aws-samples/aws-cdk-examples / lambda_handler

Function lambda_handler

python/iotcore/lambda/cert_handler.py:57–65  ·  view source on GitHub ↗
(event, context)

Source from the content-addressed store, hash-verified

55 )
56
57def lambda_handler(event, context):
58 print('Received event:', event)
59
60 if event['RequestType'] == 'Create':
61 return on_create(event)
62 elif event['RequestType'] == 'Delete':
63 return on_delete(event)
64
65 raise ValueError('Unknown request type')

Callers

nothing calls this directly

Calls 2

on_createFunction · 0.70
on_deleteFunction · 0.70

Tested by

no test coverage detected