def rule(event):
    if all(
        [
            event.deep_get("eventName", default="") == "DeleteBucket",
            any(
                [
                    event.deep_get("errorCode", default="") == "Success",
                    event.deep_get("errorCode", default="") == "",
                ]
            ),
        ]
    ):
        return True
    return False
