def allow_event_puts()

in lambda_function_code/dashboard_connection.py [0:0]


def allow_event_puts(account_id):
    """allows event puts from the account_id

    Args:
        account_id (str): the AWS account id
    """

    return event_client.put_permission(
        EventBusName="default",
        Action="events:PutEvents",
        Principal=account_id,
        StatementId=account_id,
    )