def _create_digest_key_regex(self, key_prefix):
        template = ('AWSLogs/{account}/CloudTrail\\-Digest/{source_region}/'
                    '\\d+/\\d+/\\d+/{account}_CloudTrail\\-Digest_'
                    '{source_region}_{name}_{home_region}_.+\\.json\\.gz')
        key = template.format(
            account=re.escape(self.account_id),
            source_region=re.escape(self.trail_source_region),
            home_region=re.escape(self.trail_home_region),
            name=re.escape(self.trail_name))
        if key_prefix:
            key = re.escape(key_prefix) + '/' + key
        return '^' + key + '$'
Get coordinates in cardinal directions around location
dataset/ETHPy150Open aws/aws-cli/awscli/customizations/cloudtrail/validation.py/DigestProvider._create_digest_key_regex--crossover with--dataset/ETHPy150Open tuturto/pyherc/src/pyherc/data/geometry.py/area_4_around