Skip to content

Commit

Permalink
introduce pagesize (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
marceldevroed authored Dec 24, 2024
1 parent c547732 commit d04f03b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion awsfindingsmanagerlib/awsfindingsmanagerlib.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
LOGGER.addHandler(logging.NullHandler())

MAX_SUPPRESSION_PAYLOAD_SIZE = 100
PAGINATION_PAGESIZE = 100


class Finding:
Expand Down Expand Up @@ -685,7 +686,7 @@ def _get_security_hub_client(region: str):
def _get_security_hub_paginator_iterator(self, region: str, operation_name: str, query_filter: dict):
security_hub = self._get_security_hub_client(region=region)
paginator = security_hub.get_paginator(operation_name)
return paginator.paginate(Filters=query_filter)
return paginator.paginate(Filters=query_filter, PaginationConfig={'PageSize': PAGINATION_PAGESIZE})

@staticmethod
def _get_ec2_client(region: str):
Expand Down

0 comments on commit d04f03b

Please sign in to comment.