app/repository/providers/aws/aws_mapper/aws_describe_network_acls.py
def rules(conn):
return {
'unique_id': {'call': 'switch', 'source': 'NetworkAclId'},
'associations': {'call': 'switch', 'source': 'Associations'},
'entries': {'call': 'switch', 'source': 'Entries'},
'is_default': {'call': 'switch', 'source': 'IsDefault'},
'vpc_id': {'call': 'switch', 'source': 'VpcId'},
'family': {'call': 'setV', 'source': 'NetworkAcl'},
'datacenters': {'call': 'fctDcApp',
'source': {**conn}},
'environment': {'call': 'arrCatcher',
'source': {'field': 'Tags', 'sKey': 'Key', 's': 'environment', 'catcher': 'Value'}},
'status': {'call': 'switchCapitalized', 'source': 'State'},
'tags': {'call': 'fctTags', 'source': 'Tags'},
'active': {'call': 'switchOptions',
'source': {'field': 'State',
'options': {'error': False, 'invalid': False},
'default': True
}},
'owner': {'call': 'fctOwner',
'source': {**conn}},
'accountant': {'call': 'fctAccountant', 'source': {**conn}},
'roles': {'call': 'fctRoles',
'source': {**conn}},
'checksum': {'call': 'checksum',
'source': None}
}