Paginators#
Index > EventBridge > Paginators
Auto-generated documentation for EventBridge type annotations stubs module mypy-boto3-events.
ListRuleNamesByTargetPaginator#
Type annotations and code completion for boto3.client("events").get_paginator("list_rule_names_by_target")
.
boto3 documentation
# ListRuleNamesByTargetPaginator usage example
from boto3.session import Session
from mypy_boto3_events.paginator import ListRuleNamesByTargetPaginator
def get_list_rule_names_by_target_paginator() -> ListRuleNamesByTargetPaginator:
return Session().client("events").get_paginator("list_rule_names_by_target")
# ListRuleNamesByTargetPaginator usage example with type annotations
from boto3.session import Session
from mypy_boto3_events.paginator import ListRuleNamesByTargetPaginator
session = Session()
client = Session().client("events") # (1)
paginator: ListRuleNamesByTargetPaginator = client.get_paginator("list_rule_names_by_target") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: EventBridgeClient
- paginator: ListRuleNamesByTargetPaginator
- item: ListRuleNamesByTargetResponseTypeDef
paginate#
Type annotations and code completion for ListRuleNamesByTargetPaginator.paginate
method.
# paginate method definition
def paginate(
self,
*,
TargetArn: str,
EventBusName: str = ...,
PaginationConfig: PaginatorConfigTypeDef = ..., # (1)
) -> _PageIterator[ListRuleNamesByTargetResponseTypeDef]: # (2)
...
# paginate method usage example with argument unpacking
kwargs: ListRuleNamesByTargetRequestListRuleNamesByTargetPaginateTypeDef = { # (1)
"TargetArn": ...,
}
parent.paginate(**kwargs)
ListRulesPaginator#
Type annotations and code completion for boto3.client("events").get_paginator("list_rules")
.
boto3 documentation
# ListRulesPaginator usage example
from boto3.session import Session
from mypy_boto3_events.paginator import ListRulesPaginator
def get_list_rules_paginator() -> ListRulesPaginator:
return Session().client("events").get_paginator("list_rules")
# ListRulesPaginator usage example with type annotations
from boto3.session import Session
from mypy_boto3_events.paginator import ListRulesPaginator
session = Session()
client = Session().client("events") # (1)
paginator: ListRulesPaginator = client.get_paginator("list_rules") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: EventBridgeClient
- paginator: ListRulesPaginator
- item: ListRulesResponseTypeDef
paginate#
Type annotations and code completion for ListRulesPaginator.paginate
method.
# paginate method definition
def paginate(
self,
*,
NamePrefix: str = ...,
EventBusName: str = ...,
PaginationConfig: PaginatorConfigTypeDef = ..., # (1)
) -> _PageIterator[ListRulesResponseTypeDef]: # (2)
...
# paginate method usage example with argument unpacking
kwargs: ListRulesRequestListRulesPaginateTypeDef = { # (1)
"NamePrefix": ...,
}
parent.paginate(**kwargs)
ListTargetsByRulePaginator#
Type annotations and code completion for boto3.client("events").get_paginator("list_targets_by_rule")
.
boto3 documentation
# ListTargetsByRulePaginator usage example
from boto3.session import Session
from mypy_boto3_events.paginator import ListTargetsByRulePaginator
def get_list_targets_by_rule_paginator() -> ListTargetsByRulePaginator:
return Session().client("events").get_paginator("list_targets_by_rule")
# ListTargetsByRulePaginator usage example with type annotations
from boto3.session import Session
from mypy_boto3_events.paginator import ListTargetsByRulePaginator
session = Session()
client = Session().client("events") # (1)
paginator: ListTargetsByRulePaginator = client.get_paginator("list_targets_by_rule") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: EventBridgeClient
- paginator: ListTargetsByRulePaginator
- item: ListTargetsByRuleResponseTypeDef
paginate#
Type annotations and code completion for ListTargetsByRulePaginator.paginate
method.
# paginate method definition
def paginate(
self,
*,
Rule: str,
EventBusName: str = ...,
PaginationConfig: PaginatorConfigTypeDef = ..., # (1)
) -> _PageIterator[ListTargetsByRuleResponseTypeDef]: # (2)
...
# paginate method usage example with argument unpacking
kwargs: ListTargetsByRuleRequestListTargetsByRulePaginateTypeDef = { # (1)
"Rule": ...,
}
parent.paginate(**kwargs)