def __init__(self, module, name, state, display_name, policy, delivery_policy, subscriptions, purge_subscriptions, check_mode):
    self.connection = module.client('sns')
    self.module = module
    self.name = name
    self.state = state
    self.display_name = display_name
    self.policy = policy
    self.delivery_policy = delivery_policy
    self.subscriptions = subscriptions
    self.subscriptions_existing = []
    self.subscriptions_deleted = []
    self.subscriptions_added = []
    self.purge_subscriptions = purge_subscriptions
    self.check_mode = check_mode
    self.topic_created = False
    self.topic_deleted = False
    self.topic_arn = None
    self.attributes_set = []
def __init__(self, module, name, state, display_name, policy, delivery_policy, subscriptions, purge_subscriptions, check_mode):
    self.connection = module.client('sns')
    self.module = module
    self.name = name
    self.state = state
    self.display_name = display_name
    self.policy = policy
    self.delivery_policy = delivery_policy
    self.subscriptions = subscriptions
    self.subscriptions_existing = []
    self.subscriptions_deleted = []
    self.subscriptions_added = []
    self.purge_subscriptions = purge_subscriptions
    self.check_mode = check_mode
    self.topic_created = False
    self.topic_deleted = False
    self.topic_arn = None
    self.attributes_set = []