def get_all_topics(region=None, key=None, keyid=None, profile=None):
 cache_key = _cache_get_key()
 try:
  return __context__[cache_key]
 except KeyError:
  pass
 conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
 __context__[cache_key] = {}
 topics = conn.get_all_topics()
 for t in topics['ListTopicsResponse']['ListTopicsResult']['Topics']:
  short_name = t['TopicArn'].split(':')[(-1)]
  __context__[cache_key][short_name] = t['TopicArn']
 return __context__[cache_key]

def get_all_topics ( region = None , key = None , keyid = None , profile = None ) : cache_key = _cache_get_key ( ) try : return __context__ [ cache_key ] except KeyError : pass conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) __context__ [ cache_key ] = { } topics = conn . get_all_topics ( ) for t in topics [ 'ListTopicsResponse' ] [ 'ListTopicsResult' ] [ 'Topics' ] : short_name = t [ 'TopicArn' ] . split ( ':' ) [ ( - 1 ) ] __context__ [ cache_key ] [ short_name ] = t [ 'TopicArn' ] return __context__ [ cache_key ]
returns a list of the all topics .