def ensure_gone(self):
    changed = False
    if self._name_is_arn():
        self.topic_arn = self.name
    else:
        self.topic_arn = self._topic_arn_lookup()
    if self.topic_arn:
        if (self.topic_arn not in self._list_topics()):
            self.module.fail_json(msg='Cannot use state=absent with third party ARN. Use subscribers=[] to unsubscribe')
        changed = self._delete_subscriptions()
        changed |= self._delete_topic()
    return changed
def ensure_gone(self):
    changed = False
    if self._name_is_arn():
        self.topic_arn = self.name
    else:
        self.topic_arn = self._topic_arn_lookup()
    if self.topic_arn:
        if (self.topic_arn not in self._list_topics()):
            self.module.fail_json(msg='Cannot use state=absent with third party ARN. Use subscribers=[] to unsubscribe')
        changed = self._delete_subscriptions()
        changed |= self._delete_topic()
    return changed