def update_function_config()

in apply/src/awsqs_kubernetes_resource/vpc.py [0:0]


def update_function_config(lmbd, function_config):
    try:
        LOG.debug("Updating lambda function...")
        lmbd.update_function_configuration(**function_config)
        LOG.debug("Done updating lambda function...")
        return True
    except lmbd.exceptions.ResourceConflictException as e:
        if "The operation cannot be performed at this time." not in str(
                e
        ) and "The function could not be updated due to a concurrent update operation." not in str(
            e
        ) and "Conflict due to concurrent requests on this function." not in str(
            e
        ):
            raise
        return False