in migration/bring-your-own-role/byor.py [0:0]
def _filter_lakeformationsource(resource):
if resource.get('Table') and resource['Table'].get('Name') is not None and resource['Table'].get('TableWildcard') is not None:
resource['Table'].pop('Name')
if resource.get('TableWithColumns') and resource['TableWithColumns'].get('Name') and resource['TableWithColumns']['Name'] == "ALL_TABLES":
resource['Table'] = resource['TableWithColumns']
resource['Table']['TableWildcard'] = {}
resource['Table'].pop('Name')
resource['Table'].pop('ColumnWildcard')
resource.pop('TableWithColumns')
return resource