From be197caba6282260ca53112f1f5c7ab4a6675ca9 Mon Sep 17 00:00:00 2001 From: kbalk <7536198+kbalk@users.noreply.github.com> Date: Fri, 19 Nov 2021 08:57:54 -0500 Subject: [PATCH] Add support for filters for list_resolver_endpoints (#4598) --- moto/route53resolver/models.py | 80 +++++++++++- moto/route53resolver/responses.py | 2 +- .../test_route53resolver_endpoint.py | 115 ++++++++++++++++++ 3 files changed, 192 insertions(+), 5 deletions(-) diff --git a/moto/route53resolver/models.py b/moto/route53resolver/models.py index 36254c0f0..c6315b624 100644 --- a/moto/route53resolver/models.py +++ b/moto/route53resolver/models.py @@ -2,6 +2,7 @@ from collections import defaultdict from datetime import datetime, timezone from ipaddress import ip_address, ip_network +import re from boto3 import Session @@ -25,6 +26,8 @@ from moto.route53resolver.validations import validate_args from moto.utilities.paginator import paginate from moto.utilities.tagging_service import TaggingService +CAMEL_TO_SNAKE_PATTERN = re.compile(r"(?