Skip to content

Paginators#

Index > DirectConnect > Paginators

Auto-generated documentation for DirectConnect type annotations stubs module mypy-boto3-directconnect.

DescribeDirectConnectGatewayAssociationsPaginator#

Type annotations and code completion for boto3.client("directconnect").get_paginator("describe_direct_connect_gateway_associations"). boto3 documentation

# DescribeDirectConnectGatewayAssociationsPaginator usage example

from boto3.session import Session

from mypy_boto3_directconnect.paginator import DescribeDirectConnectGatewayAssociationsPaginator

def get_describe_direct_connect_gateway_associations_paginator() -> DescribeDirectConnectGatewayAssociationsPaginator:
    return Session().client("directconnect").get_paginator("describe_direct_connect_gateway_associations")
# DescribeDirectConnectGatewayAssociationsPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_directconnect.paginator import DescribeDirectConnectGatewayAssociationsPaginator

session = Session()

client = Session().client("directconnect")  # (1)
paginator: DescribeDirectConnectGatewayAssociationsPaginator = client.get_paginator("describe_direct_connect_gateway_associations")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: DirectConnectClient
  2. paginator: DescribeDirectConnectGatewayAssociationsPaginator
  3. item: DescribeDirectConnectGatewayAssociationsResultTypeDef

paginate#

Type annotations and code completion for DescribeDirectConnectGatewayAssociationsPaginator.paginate method.

# paginate method definition

def paginate(
    self,
    *,
    associationId: str = ...,
    associatedGatewayId: str = ...,
    directConnectGatewayId: str = ...,
    virtualGatewayId: str = ...,
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (1)
) -> _PageIterator[DescribeDirectConnectGatewayAssociationsResultTypeDef]:  # (2)
    ...
  1. See PaginatorConfigTypeDef
  2. See DescribeDirectConnectGatewayAssociationsResultTypeDef
# paginate method usage example with argument unpacking

kwargs: DescribeDirectConnectGatewayAssociationsRequestDescribeDirectConnectGatewayAssociationsPaginateTypeDef = {  # (1)
    "associationId": ...,
}

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

DescribeDirectConnectGatewayAttachmentsPaginator#

Type annotations and code completion for boto3.client("directconnect").get_paginator("describe_direct_connect_gateway_attachments").