Skip to content

Paginators#

Index > ElasticLoadBalancing > Paginators

Auto-generated documentation for ElasticLoadBalancing type annotations stubs module mypy-boto3-elb.

DescribeAccountLimitsPaginator#

Type annotations and code completion for boto3.client("elb").get_paginator("describe_account_limits"). boto3 documentation

# DescribeAccountLimitsPaginator usage example

from boto3.session import Session

from mypy_boto3_elb.paginator import DescribeAccountLimitsPaginator

def get_describe_account_limits_paginator() -> DescribeAccountLimitsPaginator:
    return Session().client("elb").get_paginator("describe_account_limits")
# DescribeAccountLimitsPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_elb.paginator import DescribeAccountLimitsPaginator

session = Session()

client = Session().client("elb")  # (1)
paginator: DescribeAccountLimitsPaginator = client.get_paginator("describe_account_limits")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: ElasticLoadBalancingClient
  2. paginator: DescribeAccountLimitsPaginator
  3. item: DescribeAccountLimitsOutputTypeDef

paginate#

Type annotations and code completion for DescribeAccountLimitsPaginator.paginate method.

# paginate method definition

def paginate(
    self,
    *,
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (1)
) -> _PageIterator[DescribeAccountLimitsOutputTypeDef]:  # (2)
    ...
  1. See PaginatorConfigTypeDef
  2. See DescribeAccountLimitsOutputTypeDef
# paginate method usage example with argument unpacking

kwargs: DescribeAccountLimitsInputDescribeAccountLimitsPaginateTypeDef = {  # (1)
    "PaginationConfig": ...,
}

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

DescribeLoadBalancersPaginator#

Type annotations and code completion for boto3.client("elb").get_paginator("describe_load_balancers"). boto3 documentation

# DescribeLoadBalancersPaginator usage example

from boto3.session import Session

from mypy_boto3_elb.paginator import DescribeLoadBalancersPaginator

def get_describe_load_balancers_paginator() -> DescribeLoadBalancersPaginator:
    return Session().client("elb").get_paginator("describe_load_balancers")
# DescribeLoadBalancersPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_elb.paginator import DescribeLoadBalancersPaginator

session = Session()

client = Session().client("elb")  # (1)
paginator: DescribeLoadBalancersPaginator = client.get_paginator("describe_load_balancers")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: ElasticLoadBalancingClient
  2. paginator: DescribeLoadBalancersPaginator
  3. item: DescribeAccessPointsOutputTypeDef

paginate#

Type annotations and code completion for DescribeLoadBalancersPaginator.paginate method.

# paginate method definition

def paginate(
    self,
    *,
    LoadBalancerNames: Sequence[str] = ...,
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (1)
) -> _PageIterator[DescribeAccessPointsOutputTypeDef]:  # (2)
    ...
  1. See PaginatorConfigTypeDef
  2. See DescribeAccessPointsOutputTypeDef
# paginate method usage example with argument unpacking

kwargs: DescribeAccessPointsInputDescribeLoadBalancersPaginateTypeDef = {  # (1)
    "LoadBalancerNames": ...,
}

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