def get_all_cache_subnet_groups(name=None, region=None, key=None, keyid=None, profile=None):
 conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
 try:
  marker = ''
  groups = []
  while (marker is not None):
   ret = conn.describe_cache_subnet_groups(cache_subnet_group_name=name, marker=marker)
   trimmed = ret.get('DescribeCacheSubnetGroupsResponse', {}).get('DescribeCacheSubnetGroupsResult', {})
   groups += trimmed.get('CacheSubnetGroups', [])
   marker = trimmed.get('Marker', None)
  if (not groups):
   log.debug('No ElastiCache subnet groups found.')
  return groups
 except boto.exception.BotoServerError as e:
  log.error(e)
  return []

def get_all_cache_subnet_groups ( name = None , region = None , key = None , keyid = None , profile = None ) : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) try : marker = '' groups = [ ] while ( marker is not None ) : ret = conn . describe_cache_subnet_groups ( cache_subnet_group_name = name , marker = marker ) trimmed = ret . get ( 'DescribeCacheSubnetGroupsResponse' , { } ) . get ( 'DescribeCacheSubnetGroupsResult' , { } ) groups += trimmed . get ( 'CacheSubnetGroups' , [ ] ) marker = trimmed . get ( 'Marker' , None ) if ( not groups ) : log . debug ( 'No ElastiCache subnet groups found.' ) return groups except boto . exception . BotoServerError as e : log . error ( e ) return [ ]
return a list of all cache subnet groups with details cli example:: salt myminion boto_elasticache .