Boto3 documentation for lambda_client.invoke
suggests it is possible to pass data via the ClientContext
object as a string.
The string is required to be base64 encoded JSON.
To encode such a string, use:
import baseb4
base64.b64encode(b'<string>').decode('utf-8')