def _create_topic(self):
    if (not self.check_mode):
        try:
            response = self.connection.create_topic(Name=self.name)
        except (botocore.exceptions.ClientError, botocore.exceptions.BotoCoreError) as e:
            self.module.fail_json_aws(e, msg=("Couldn't create topic %s" % self.name))
        self.topic_arn = response['TopicArn']
    return True
def _create_topic(self):
    if (not self.check_mode):
        try:
            response = self.connection.create_topic(Name=self.name)
        except (botocore.exceptions.ClientError, botocore.exceptions.BotoCoreError) as e:
            self.module.fail_json_aws(e, msg=("Couldn't create topic %s" % self.name))
        self.topic_arn = response['TopicArn']
    return True