in lambda-functions/aemp-cloudfront-sync-function/function.py [0:0]
def create_cache_behavior(pathPattern,originId,isMSS):
log.debug(f'Path Pattern|OriginId|isMSS :{pathPattern}|{originId}|{isMSS}')
behavior = {'PathPattern': pathPattern, 'TargetOriginId': originId, 'TrustedSigners': {'Enabled': False, 'Quantity': 0},
'ViewerProtocolPolicy': 'redirect-to-https', 'AllowedMethods': {'Quantity': 3, 'Items': ['HEAD', 'GET','OPTIONS'],
'CachedMethods': {'Quantity': 3, 'Items': ['HEAD', 'GET','OPTIONS']}}, 'SmoothStreaming': isMSS, 'Compress': False,
'LambdaFunctionAssociations': {'Quantity': 0}, 'FieldLevelEncryptionId': '',
# 'ForwardedValues': {'QueryString': True, 'Cookies': {'Forward': 'none'},
# 'Headers': {'Quantity': 0}, 'QueryStringCacheKeys': {'Quantity': 3, 'Items': ['end', 'm', 'start']}},
'CachePolicyId':'08627262-05a9-4f76-9ded-b50ca2e3a84f'}
return behavior