code: def list_topics(region=None, key=None, keyid=None, profile=None):
      '''
      Returns a list of the requester's topics
  
      CLI example::
  
          salt myminion boto3_sns.list_topics
      '''
      conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
      res = {}
      NextToken = ''
      while NextToken is not None:
          ret = conn.list_topics(NextToken=NextToken)
          NextToken = ret.get('NextToken', None)
          arns = jmespath.search('Topics[*].TopicArn', ret)
          for t in arns:
              short_name = t.split(':')[-1]
              res[short_name] = t
      return ref list_topics(region=None, key=None, keyid=None, profile=None):
      '''
      Returns a list of the requester's topics
  
      CLI example::
  
          salt myminion boto3_sns.list_topics
      '''
      conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
      res = {}
      NextToken = ''
      while NextToken is not None:
          ret = conn.list_topics(NextToken=NextToken)
          NextToken = ret.get('NextToken', None)
          arns = jmespath.search('Topics[*].TopicArn', ret)
          for t in arns:
              short_name = t.split(':')[-1]
              res[short_name] = t
      return res
docs: Returns a list of the requester's topics
  
      CLI example::
  
          salt myminion boto3_sns.list_topics