in lambda-functions/aemp-cloudfront-sync-function/function.py [0:0]
def get_origin_pathpatterns(endpoints):
pathPatterns = {}
for endpoint in endpoints:
response = urlparse(endpoint)
isMSS = False
if ".ism" in response.path:
isMSS = True
pathPatterns[(generalise_path(response.path, isMSS))] = {'OriginDomain':response.netloc,'isMSS':isMSS}
log.debug(f'Unique Path Patterns {pathPatterns}')
return pathPatterns