websocket_demo/libs/aws.py
def invoke_lambda_async(function_name, payload):
    """Invoke a Lambda function with an Event invocation type"""
    _lambda = boto3.client('lambda')
    return _lambda.invoke(
        FunctionName=function_name,
        Payload=safe_dumps(payload),
        InvocationType='Event',
    )
Invoke a Lambda function with an Event invocation type
Invoke a Lambda function with an Event invocation type
Invoke a Lambda function with an Event invocation type
def invoke_lambda_async(function_name, payload):
    _lambda = boto3.client('lambda')
    return _lambda.invoke(
        FunctionName=function_name,
        Payload=safe_dumps(payload),
        InvocationType='Event',
    )
def invoke_lambda_async ( function_name , payload ) : _lambda = boto3 . client ( 'lambda' ) return _lambda . invoke ( FunctionName = function_name , Payload = safe_dumps ( payload ) , InvocationType = 'Event' , )
Invoke a Lambda function with an Event invocation type
Invoke a Lambda function with an Event invocation type
"""Invoke a Lambda function with an Event invocation type"""
function_name
payload