Logs: get_log_events() should allow max 10.000 events

This commit is contained in:
Bert Blommers 2023-08-24 18:08:17 +00:00 committed by GitHub
parent 873bc9cf1a
commit d351853276
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -898,7 +898,7 @@ class LogsBackend(BaseBackend):
) -> Tuple[List[Dict[str, Any]], Optional[str], Optional[str]]:
if log_group_name not in self.groups:
raise ResourceNotFoundException()
if limit and limit > 1000:
if limit and limit > 10000:
raise InvalidParameterException(
constraint="Member must have value less than or equal to 10000",
parameter="limit",
@ -926,7 +926,7 @@ class LogsBackend(BaseBackend):
"""
if log_group_name not in self.groups:
raise ResourceNotFoundException()
if limit and limit > 1000:
if limit and limit > 10000:
raise InvalidParameterException(
constraint="Member must have value less than or equal to 10000",
parameter="limit",