in filter_aws.py [0:0]
def execute(self, listing, response):
"""Apply filter.
Args:
listing: data returned from aws api.
response: relevant data returned to caller.
"""
if listing.service == 'elasticache' and listing.operation == 'DescribeCacheSubnetGroups':
response['CacheSubnetGroups'] = [
g for g in response.get('CacheSubnetGroups', [])
if g.get('CacheSubnetGroupName') != 'default'
]