def _delete_topic(self):
    self.topic_deleted = True
    if (not self.check_mode):
        try:
            self.connection.delete_topic(TopicArn=self.topic_arn)
        except (botocore.exceptions.ClientError, botocore.exceptions.BotoCoreError) as e:
            self.module.fail_json_aws(e, msg=("Couldn't delete topic %s" % self.topic_arn))
    return True
def _delete_topic(self):
    self.topic_deleted = True
    if (not self.check_mode):
        try:
            self.connection.delete_topic(TopicArn=self.topic_arn)
        except (botocore.exceptions.ClientError, botocore.exceptions.BotoCoreError) as e:
            self.module.fail_json_aws(e, msg=("Couldn't delete topic %s" % self.topic_arn))
    return True