Skip to content

Paginators#

Index > MarketplaceEntitlementService > Paginators

Auto-generated documentation for MarketplaceEntitlementService type annotations stubs module mypy-boto3-marketplace-entitlement.

GetEntitlementsPaginator#

Type annotations and code completion for boto3.client("marketplace-entitlement").get_paginator("get_entitlements"). boto3 documentation

# GetEntitlementsPaginator usage example

from boto3.session import Session

from mypy_boto3_marketplace_entitlement.paginator import GetEntitlementsPaginator

def get_get_entitlements_paginator() -> GetEntitlementsPaginator:
    return Session().client("marketplace-entitlement").get_paginator("get_entitlements")
# GetEntitlementsPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_marketplace_entitlement.paginator import GetEntitlementsPaginator

session = Session()

client = Session().client("marketplace-entitlement")  # (1)
paginator: GetEntitlementsPaginator = client.get_paginator("get_entitlements")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: MarketplaceEntitlementServiceClient
  2. paginator: GetEntitlementsPaginator
  3. item: GetEntitlementsResultTypeDef

paginate#

Type annotations and code completion for GetEntitlementsPaginator.paginate method.

# paginate method definition

def paginate(
    self,
    *,
    ProductCode: str,
    Filter: Mapping[GetEntitlementFilterNameType, Sequence[str]] = ...,  # (1)
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (2)
) -> _PageIterator[GetEntitlementsResultTypeDef]:  # (3)
    ...
  1. See GetEntitlementFilterNameType
  2. See PaginatorConfigTypeDef
  3. See GetEntitlementsResultTypeDef
# paginate method usage example with argument unpacking

kwargs: GetEntitlementsRequestGetEntitlementsPaginateTypeDef = {  # (1)
    "ProductCode": ...,
}

parent.paginate(**kwargs)
  1. See GetEntitlementsRequestGetEntitlementsPaginateTypeDef