def rule(event):
    if all(
        [
            event.deep_get("Status", default="") == "Success",
            event.deep_get("HomeTenantId", default="") == "HomeTenantID",
            not "HomeTenantID" in event.deep_get("ResourceTenantId", default=""),
        ]
    ):
        return True
    return False
