def _list_topics(self):
    try:
        topics = self._list_topics_with_backoff()
    except (botocore.exceptions.ClientError, botocore.exceptions.BotoCoreError) as e:
        self.module.fail_json_aws(e, msg="Couldn't get topic list")
    return [t['TopicArn'] for t in topics]
def _list_topics(self):
    try:
        topics = self._list_topics_with_backoff()
    except (botocore.exceptions.ClientError, botocore.exceptions.BotoCoreError) as e:
        self.module.fail_json_aws(e, msg="Couldn't get topic list")
    return [t['TopicArn'] for t in topics]