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 == 'kms' and listing.operation == 'ListAliases':
response['Aliases'] = [
alias for alias in response.get('Aliases', [])
if not alias.get('AliasName').lower().startswith('alias/aws')
]